Method Summary |
|
protected void | clearAttributes() Clear all application-created attributes. |
public Object | getAttribute(String name) Return the value of the specified context attribute, if any;
otherwise return null . |
public Enumeration | getAttributeNames() Return an enumeration of the names of the context attributes
associated with this context. |
public ServletContext | getContext(String uri) Return a ServletContext object that corresponds to a
specified URI on the server. |
protected StandardContext | getContext() |
public String | getContextPath() Return the main path associated with this context. |
protected ServletContext | getFacade() Return the facade associated with this ApplicationContext. |
public String | getInitParameter(String name) Return the value of the specified initialization parameter, or
null if this parameter does not exist. |
public Enumeration | getInitParameterNames() Return the names of the context's initialization parameters, or an
empty enumeration if the context has no initialization parameters. |
public int | getMajorVersion() Return the major version of the Java Servlet API that we implement. |
public String | getMimeType(String file) Return the MIME type of the specified file, or null if
the MIME type cannot be determined. |
public int | getMinorVersion() Return the minor version of the Java Servlet API that we implement. |
public RequestDispatcher | getNamedDispatcher(String name) Return a RequestDispatcher object that acts as a
wrapper for the named servlet. |
protected Map | getReadonlyAttributes() |
public String | getRealPath(String path) Return the real path for a given virtual path, if possible; otherwise
return null . |
public RequestDispatcher | getRequestDispatcher(String path) Return a RequestDispatcher instance that acts as a
wrapper for the resource at the given path. |
public URL | getResource(String path) Return the URL to the resource that is mapped to a specified path. |
public InputStream | getResourceAsStream(String path) Return the requested resource as an InputStream . |
public Set | getResourcePaths(String path) Return a Set containing the resource paths of resources member of the
specified collection. |
public DirContext | getResources() Return the resources object that is mapped to a specified path. |
public String | getServerInfo() Return the name and version of the servlet container. |
public Servlet | getServlet(String name) |
public String | getServletContextName() Return the display name of this web application. |
public Enumeration | getServletNames() |
public Enumeration | getServlets() |
public void | log(String message) Writes the specified message to a servlet log file. |
public void | log(Exception exception, String message) Writes the specified exception and message to a servlet log file. |
public void | log(String message, Throwable throwable) Writes the specified message and exception to a servlet log file. |
public void | removeAttribute(String name) Remove the context attribute with the specified name, if any. |
public void | setAttribute(String name, Object value) Bind the specified value with the specified context attribute name,
replacing any existing value for that name. |
void | setAttributeReadOnly(String name) Set an attribute as read only. |