|
||||||||||
| 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(ServletContext servletContext)
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Returns an attribute previously stored into the context with the given name. |
List<String> |
getAttributeNames()
Returns the names of all attributes of the context, sorted alphabetically. |
String |
getInitParameter(String name)
Returns an initial parameter value defined by servlet. |
String |
getMimeType(String file)
Returns the MIME content type of the specified file, or null if no content type is known. |
File |
getRealFile(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). |
URL |
getResource(String path)
Returns a URL to a resource stored within the context. |
List<String> |
getResourcePaths(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(ServletContext servletContext)
| Method Detail |
|---|
public URL getResource(String path)
Context
getResource in interface Contextpath - to the resource (with a leading slash)
public File getRealFile(String path)
ContextContext.getResource(String).
getRealFile in interface Contextpath - to the resource (with a leading slash)
public String getInitParameter(String name)
Context
getInitParameter in interface Contextpublic List<String> getResourcePaths(String path)
Context
getResourcePaths in interface Contextpath - to search for (should start with a leading slash)
public Object getAttribute(String name)
Context
getAttribute in interface Contextname - used to retrieve the attribute
public List<String> getAttributeNames()
Context
getAttributeNames in interface Contextpublic String getMimeType(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 | |||||||||