org.apache.cocoon.webapps.session.context
Class StandardSessionContextProvider

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.webapps.session.context.StandardSessionContextProvider
All Implemented Interfaces:
Contextualizable, Disposable, LogEnabled, Serviceable, SessionContextProvider, ThreadSafe

public final class StandardSessionContextProvider
extends AbstractLogEnabled
implements SessionContextProvider, ThreadSafe, Contextualizable, Serviceable, Disposable

Context provider for the temporarily context, the request and the response context.

Version:
CVS $Id: StandardSessionContextProvider.java 306577 2005-10-06 10:23:21Z cziegeler $
Author:
Carsten Ziegeler

Field Summary
protected  Context context
           
protected  ServiceManager manager
           
protected  SourceResolver resolver
          The Source Resolver
protected  XPathProcessor xpathProcessor
          The xpath processor
 
Fields inherited from interface org.apache.cocoon.webapps.session.context.SessionContextProvider
ROLE
 
Constructor Summary
StandardSessionContextProvider()
           
 
Method Summary
 void contextualize(Context context)
           
 void dispose()
           
 boolean existsSessionContext(String name)
          Does the context exist?
 SessionContext getSessionContext(String name)
          Get the context
 void service(ServiceManager manager)
           
 
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
 

Field Detail

context

protected Context context

manager

protected ServiceManager manager

xpathProcessor

protected XPathProcessor xpathProcessor
The xpath processor


resolver

protected SourceResolver resolver
The Source Resolver

Constructor Detail

StandardSessionContextProvider

public StandardSessionContextProvider()
Method Detail

getSessionContext

public SessionContext getSessionContext(String name)
                                 throws ProcessingException
Get the context

Specified by:
getSessionContext in interface SessionContextProvider
Parameters:
name - The name of the context
Returns:
The context
Throws:
ProcessingException - If the context is not available.

existsSessionContext

public boolean existsSessionContext(String name)
                             throws ProcessingException
Does the context exist?

Specified by:
existsSessionContext in interface SessionContextProvider
Throws:
ProcessingException

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Specified by:
dispose in interface Disposable


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.