org.apache.tapestry.web
Interface WebContext
- All Superinterfaces:
- AttributeHolder, Describable, InitializationParameterHolder
- All Known Implementing Classes:
- ServletWebContext
public interface WebContext
- extends AttributeHolder, InitializationParameterHolder, Describable
A representation of a set of servlets (or portlets) packaged together as a web application
archive. Attributes stored within the context are global to all 'lets (but not distributed across
a server cluster).
- Author:
- Howard M. Lewis Ship
Method Summary |
java.lang.String |
getMimeType(java.lang.String resourcePath)
Returns the MIME type of the specified file, or null if the MIME type is not known. |
java.net.URL |
getResource(java.lang.String path)
Returns a URL to the resource that is mapped to a specified path. |
getResource
java.net.URL getResource(java.lang.String path)
- Returns a URL to the resource that is mapped to a specified path. The path must begin with a
"/" and is interpreted as relative to the current context root.
getMimeType
java.lang.String getMimeType(java.lang.String resourcePath)
- Returns the MIME type of the specified file, or null if the MIME type is not known.