org.jboss.portal.server.app.impl
Class AbstractSessionContext

java.lang.Object
  extended byorg.jboss.portal.server.app.impl.AbstractSessionContext
All Implemented Interfaces:
SessionContext

public class AbstractSessionContext
extends java.lang.Object
implements SessionContext

Session provider implementation that uses the dispatched http request to give access to the http session.


Constructor Summary
AbstractSessionContext(ComponentRequest req)
           
 
Method Summary
 java.lang.String getRequestedSessionId()
           
 javax.servlet.http.HttpSession getSession(boolean create)
           
 boolean isRequestedSessionIdValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSessionContext

public AbstractSessionContext(ComponentRequest req)
Method Detail

getSession

public javax.servlet.http.HttpSession getSession(boolean create)
                                          throws java.lang.IllegalStateException
Specified by:
getSession in interface SessionContext
Throws:
java.lang.IllegalStateException - when the dispatched request is not accessible

getRequestedSessionId

public java.lang.String getRequestedSessionId()
                                       throws java.lang.IllegalStateException
Specified by:
getRequestedSessionId in interface SessionContext
Throws:
java.lang.IllegalStateException - when the dispatched request is not accessible

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
                                  throws java.lang.IllegalStateException
Specified by:
isRequestedSessionIdValid in interface SessionContext
Throws:
java.lang.IllegalStateException - when the dispatched request is not accessible