站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

AbstractSessionContext - JBOSS Portal 2.2 API 英文版文档


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