org.apache.cocoon.webapps.session.context
Interface SessionContextProvider
- All Known Implementing Classes:
- AuthenticationContextProvider, StandardSessionContextProvider
- public interface SessionContextProvider
Interface for a context provider.
Objects of this class provide special context, e.g. authentication or portal.
The provider has to take care that the context is instantiated and managed
correctly: for example a request context object should only created once
per request, an authentication context once per session etc.
- Version:
- CVS $Id: SessionContextProvider.java 30941 2004-07-29 19:56:58Z vgritsenko $
- Author:
- Carsten Ziegeler
ROLE
public static final String ROLE
getSessionContext
public SessionContext getSessionContext(String name)
throws ProcessingException
- Get the context
- 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?
- Throws:
ProcessingException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.