| java.lang.Object de.schlund.pfixxml.SessionContextStore
SessionContextStore | public class SessionContextStore implements HttpSessionBindingListener(Code) | | Stores context instances within a session. The ContextXMLServlet uses this
class to store a context instance within a session. All servlets use this
class to get existing instances.
author: Sebastian Marsching |
getContext | public ContextImpl 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 ContextImpl 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 SessionContextStore getInstance(HttpSession session)(Code) | | Provides store instance associated with a session. If no store is
available for the session a new one will be created.
Parameters: session - HTTP session store instance stored in the specified session |
storeContext | public void storeContext(ContextXMLServlet servlet, PfixServletRequest preq, String name, ContextImpl 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 |
|
|