|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.ContextImpl
public class ContextImpl
| Constructor Summary | |
|---|---|
ContextImpl(javax.servlet.ServletContext servletContext)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns an attribute previously stored into the context with the given name. |
java.util.List<java.lang.String> |
getAttributeNames()
Returns the names of all attributes of the context, sorted alphabetically. |
java.lang.String |
getInitParameter(java.lang.String name)
Returns an initial parameter value defined by servlet. |
java.lang.String |
getMimeType(java.lang.String file)
Returns the MIME content type of the specified file, or null if no content type is known. |
java.io.File |
getRealFile(java.lang.String path)
Attempts to find the actual file, on the file system, that would be provided by the servlet container for the given path (which must start with a leading slash). |
java.net.URL |
getResource(java.lang.String path)
Returns a URL to a resource stored within the context. |
java.util.List<java.lang.String> |
getResourcePaths(java.lang.String path)
Looks for resources within the web application within the supplied path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextImpl(javax.servlet.ServletContext servletContext)
| Method Detail |
|---|
public java.net.URL getResource(java.lang.String path)
Context
getResource in interface Contextpath - to the resource (with a leading slash)
public java.io.File getRealFile(java.lang.String path)
ContextContext.getResource(String).
getRealFile in interface Contextpath - to the resource (with a leading slash)
public java.lang.String getInitParameter(java.lang.String name)
Context
getInitParameter in interface Contextpublic java.util.List<java.lang.String> getResourcePaths(java.lang.String path)
Context
getResourcePaths in interface Contextpath - to search for (should start with a leading slash)
public java.lang.Object getAttribute(java.lang.String name)
Context
getAttribute in interface Contextname - used to retrieve the attribute
public java.util.List<java.lang.String> getAttributeNames()
Context
getAttributeNames in interface Contextpublic java.lang.String getMimeType(java.lang.String file)
Context
getMimeType in interface Contextfile - name of file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||