|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.wsrp.consumer.SessionHandler
Manages session informations on behalf of a consumer.
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 |
protected WSRPConsumerImpl consumer
protected org.jboss.logging.Logger log
private CookieProtocol requiresInitCookie
private static final java.lang.String SESSION_ID_PREFIX
Constructor Detail |
public SessionHandler(WSRPConsumerImpl consumer)
consumer
- the consumer this SessionHandler is associated with.Method Detail |
public boolean isPerUserCookieInit()
public boolean requiresInitCookie()
public void setRequiresInitCookie(CookieProtocol requiresInitCookie)
void initProducerSessionInformation(PortletInvocation invocation)
private boolean requiresGroupInitCookie()
public void resetCurrentlyHeldInformation()
public void initCookieIfNeeded(PortletInvocation invocation) throws java.lang.Exception
java.lang.Exception
private void initCookieIfNeeded(PortletInvocation invocation, boolean retryIfFails) throws java.lang.Exception, InvokerUnavailableException
java.lang.Exception
InvokerUnavailableException
private void initCookie(InitCookie initCookie, PortletInvocation invocation, boolean retryIfFails) throws java.lang.Exception, InvokerUnavailableException
java.lang.Exception
InvokerUnavailableException
void setSessionIdIfNeeded(PortletInvocation invocation, RuntimeContext runtimeContext)
void updateSessionIfNeeded(SessionContext sessionContext, PortletInvocation invocation)
void updateCookiesIfNeeded(PortletInvocation invocation)
ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation)
private ProducerSessionInformation getProducerSessionInformation(PortletInvocation invocation, boolean create)
ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session)
private ProducerSessionInformation getProducerSessionInformation(javax.servlet.http.HttpSession session, boolean create)
private java.lang.String getProducerSessionInformationKey()
void handleInvalidSessionFault(PortletInvocation invocation, RuntimeContext runtimeContext)
private void invalidateSession(PortletInvocation invocation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |