org.apache.cocoon.webapps.portal.context
Class SessionContextProviderImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.webapps.portal.context.SessionContextProviderImpl
All Implemented Interfaces:
Disposable, Component, Contextualizable, LogEnabled, Serviceable, ThreadSafe, SessionContextProvider

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

Context provider for the portal context

Version:
CVS $Id: SessionContextProviderImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  XPathProcessor xpathProcessor
          The XPath Processor
 
Fields inherited from interface org.apache.cocoon.webapps.session.context.SessionContextProvider
ROLE
 
Constructor Summary
SessionContextProviderImpl()
           
 
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

xpathProcessor

protected XPathProcessor xpathProcessor
The XPath Processor

Constructor Detail

SessionContextProviderImpl

public SessionContextProviderImpl()
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

service

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

contextualize

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

dispose

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


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.