|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.webapps.session.components.DefaultSessionManager
public final class DefaultSessionManager
This is the default implementation of the session manager
Field Summary |
---|
Fields inherited from interface org.apache.cocoon.webapps.session.SessionManager |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultSessionManager()
Deprecated. |
Method Summary | |
---|---|
void |
appendContextFragment(String contextName,
String path,
DocumentFragment fragment)
Deprecated. Append data in a public context. |
void |
contextualize(Context context)
Deprecated. |
Session |
createSession()
Deprecated. Create a new session for the user. |
void |
dispose()
Deprecated. Avalon Disposable Interface |
DocumentFragment |
getContextFragment(String contextName,
String path)
Deprecated. Get information from the context. |
Session |
getSession(boolean createFlag)
Deprecated. Get the session for the current user. |
void |
mergeContextFragment(String contextName,
String path,
DocumentFragment fragment)
Deprecated. Merge data in a public context. |
void |
removeContextFragment(String contextName,
String path)
Deprecated. Remove data in a public context. |
void |
service(ServiceManager manager)
Deprecated. Avalon Serviceable Interface |
void |
setContextFragment(String contextName,
String path,
DocumentFragment fragment)
Deprecated. Set data in a public context. |
boolean |
streamContextFragment(String contextName,
String path,
XMLConsumer consumer)
Deprecated. Stream public context data. |
void |
terminateSession(boolean force)
Deprecated. Terminate the current session. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSessionManager()
Method Detail |
---|
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void dispose()
dispose
in interface Disposable
public Session createSession()
createSession
in interface SessionManager
public Session getSession(boolean createFlag)
null
is returned.
If createFlag is true, the session is created if it does not exist.
getSession
in interface SessionManager
public void terminateSession(boolean force) throws ProcessingException
terminateSession
in interface SessionManager
force
- If this is set to true the session is terminated, if
it is set to false, the session is only terminated
if no session context is available.
ProcessingException
public DocumentFragment getContextFragment(String contextName, String path) throws ProcessingException
null
is returned.
getContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying which data to get.
null
ProcessingException
public boolean streamContextFragment(String contextName, String path, XMLConsumer consumer) throws SAXException, ProcessingException
streamContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying which data to get.
true
is returned,
otherwise false
is returned.
SAXException
ProcessingException
public void setContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException
setContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying where to set the data.fragment
- The DocumentFragment containing the data.
ProcessingException
public void appendContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException
appendContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying where to append the data.fragment
- The DocumentFragment containing the data.
ProcessingException
public void mergeContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException
mergeContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying where to merge the data.fragment
- The DocumentFragment containing the data.
ProcessingException
public void removeContextFragment(String contextName, String path) throws ProcessingException
removeContextFragment
in interface SessionManager
contextName
- The name of the public context.path
- XPath expression specifying where to merge the data.
ProcessingException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |