| java.lang.Object de.schlund.pfixxml.ServerContextStore
ServerContextStore | public class ServerContextStore (Code) | | Stores context instances within a servlet context. The ContextXMLServlet uses
this class to store a context instance within the servlet context. All
servlets use this class to get existing instances.
author: Sebastian Marsching |
getContext | public ServerContextImpl getContext(ContextXMLServlet servlet, PfixServletRequest preq)(Code) | | Returns context instance associated with a servlet
Parameters: servlet - servlet for which context instance is to be returned Parameters: preq - current servlet request context instance or null if no context instance isstored for the supplied parameters |
getContext | public ServerContextImpl getContext(String identifier)(Code) | | Returns the context instance for the servlet identified by the supplied
identifier. The identifier can be the path (starting with a '/') of
the ContextXMLServlet, the name manually specified in its configuration
or the name provided by the webapplication deployment descriptor. The
method will try to guess the type of identifier.
Parameters: identifier - string identifying the origin servlet context instance or null if no matching instance cabe found |
getInstance | public static ServerContextStore getInstance(ServletContext servletContext)(Code) | | Provides store instance associated with a servlet context. If no store is
available for the servlet context a new one will be created.
Parameters: servletContext - servlet context store instance stored in the specified servlet context |
storeContext | public void storeContext(ContextXMLServlet servlet, PfixServletRequest preq, String name, ServerContextImpl context)(Code) | | Stores a context instance.
Parameters: servlet - servlet the context instance is associated to Parameters: preq - current servlet request Parameters: name - name of the servlet (if configured) Parameters: context - the context instance to store |
|
|