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

SessionHandler - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.wsrp.consumer
Class SessionHandler

java.lang.Object
  extended byorg.jboss.portal.wsrp.consumer.SessionHandler

public class SessionHandler
extends java.lang.Object

Manages session informations on behalf of a consumer.

Since:
2.4 (May 31, 2006)
Version:
$Revision: 5440 $
Author:
Chris Laprun

Field Summary
protected  WSRPConsumerImpl consumer
           
protected  org.jboss.logging.Logger log
           
private  CookieProtocol requiresInitCookie
          Cookie protocol required by the producer with the consumer
private static java.lang.String SESSION_ID_PREFIX
          The prefix used to isolate WSRP-related session information in the actual session object.
 
Constructor Summary
SessionHandler(WSRPConsumerImpl consumer)
          Constructs a new SessionHandler.
 
Method Summary
(package private)  ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session)
           
private  ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session, boolean create)
           
(package private)  ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation)
           
private  ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation, boolean create)
           
private  java.lang.String getProducerSessionInformationKey()
           
(package private)  void handleInvalidSessionFault(PortletInvocation invocation, RuntimeContext runtimeContext)
           
private  void initCookie(InitCookie initCookie, PortletInvocation invocation, boolean retryIfFails)
           
 void initCookieIfNeeded(PortletInvocation invocation)
           
private  void initCookieIfNeeded(PortletInvocation invocation, boolean retryIfFails)
           
(package private)  void initProducerSessionInformation(PortletInvocation invocation)
           
private  void invalidateSession(PortletInvocation invocation)
           
 boolean isPerUserCookieInit()
           
private  boolean requiresGroupInitCookie()
           
 boolean requiresInitCookie()
           
 void resetCurrentlyHeldInformation()
          Resets the information held by RequestHeaderClientHandler for the current interaction.
 void setRequiresInitCookie(CookieProtocol requiresInitCookie)
           
(package private)  void setSessionIdIfNeeded(PortletInvocation invocation, RuntimeContext runtimeContext)
           
(package private)  void updateCookiesIfNeeded(PortletInvocation invocation)
           
(package private)  void updateSessionIfNeeded(SessionContext sessionContext, PortletInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consumer

protected WSRPConsumerImpl consumer

log

protected org.jboss.logging.Logger log

requiresInitCookie

private CookieProtocol requiresInitCookie
Cookie protocol required by the producer with the consumer


SESSION_ID_PREFIX

private static final java.lang.String SESSION_ID_PREFIX
The prefix used to isolate WSRP-related session information in the actual session object.

See Also:
Constant Field Values
Constructor Detail

SessionHandler

public SessionHandler(WSRPConsumerImpl consumer)
Constructs a new SessionHandler.

Parameters:
consumer - the consumer this SessionHandler is associated with.
Method Detail

isPerUserCookieInit

public boolean isPerUserCookieInit()

requiresInitCookie

public boolean requiresInitCookie()

setRequiresInitCookie

public void setRequiresInitCookie(CookieProtocol requiresInitCookie)

initProducerSessionInformation

void initProducerSessionInformation(PortletInvocation invocation)

requiresGroupInitCookie

private boolean requiresGroupInitCookie()

resetCurrentlyHeldInformation

public void resetCurrentlyHeldInformation()
Resets the information held by RequestHeaderClientHandler for the current interaction.


initCookieIfNeeded

public void initCookieIfNeeded(PortletInvocation invocation)
                        throws java.lang.Exception
Throws:
java.lang.Exception

initCookieIfNeeded

private void initCookieIfNeeded(PortletInvocation invocation,
                                boolean retryIfFails)
                         throws java.lang.Exception,
                                InvokerUnavailableException
Throws:
java.lang.Exception
InvokerUnavailableException

initCookie

private void initCookie(InitCookie initCookie,
                        PortletInvocation invocation,
                        boolean retryIfFails)
                 throws java.lang.Exception,
                        InvokerUnavailableException
Throws:
java.lang.Exception
InvokerUnavailableException

setSessionIdIfNeeded

void setSessionIdIfNeeded(PortletInvocation invocation,
                          RuntimeContext runtimeContext)

updateSessionIfNeeded

void updateSessionIfNeeded(SessionContext sessionContext,
                           PortletInvocation invocation)

updateCookiesIfNeeded

void updateCookiesIfNeeded(PortletInvocation invocation)

getProducerSessionInformation

ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation)

getProducerSessionInformation

private ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation,
                                                                 boolean create)

getProducerSessionInformation

ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session)

getProducerSessionInformation

private ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session,
                                                                 boolean create)

getProducerSessionInformationKey

private java.lang.String getProducerSessionInformationKey()

handleInvalidSessionFault

void handleInvalidSessionFault(PortletInvocation invocation,
                               RuntimeContext runtimeContext)

invalidateSession

private void invalidateSession(PortletInvocation invocation)