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.
 
Methods inherited from interface org.apache.tapestry.web.AttributeHolder
getAttribute, getAttributeNames, setAttribute
 
Methods inherited from interface org.apache.tapestry.web.InitializationParameterHolder
getInitParameterNames, getInitParameterValue
 
Methods inherited from interface org.apache.tapestry.describe.Describable
describeTo
 

Method Detail

getResource

public 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

public 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.