|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.wsrp.consumer.ProducerSessionInformation
public class ProducerSessionInformation
Records session and cookie information for a producer.
Constructor Summary | |
---|---|
ProducerSessionInformation()
|
Method Summary | |
---|---|
void |
addSessionForPortlet(java.lang.String portletHandle,
SessionContext sessionContext)
|
void |
clearGroupCookies()
|
java.lang.String |
getGroupCookieFor(java.lang.String groupId)
|
int |
getNumberOfSessions()
|
java.lang.String |
getParentSessionId()
public only for tests |
java.lang.String |
getSessionIdForPortlet(java.lang.String portletHandle)
Retrieves the session id for the portlet with the specified handle. |
java.lang.String |
getUserCookie()
|
boolean |
isInitCookieDone()
|
boolean |
isPerGroupCookies()
|
java.lang.String |
removeSession(java.lang.String sessionId)
|
java.lang.String |
removeSessionForPortlet(java.lang.String portletHandle)
|
java.util.List |
removeSessions()
|
void |
replaceUserCookiesWith(ProducerSessionInformation currentSessionInfo)
|
void |
setGroupCookieFor(java.lang.String groupId,
org.apache.commons.httpclient.Cookie[] cookies)
|
void |
setInitCookieDone(boolean initCookieDone)
|
void |
setParentSessionId(java.lang.String parentSessionId)
public only for tests |
void |
setPerGroupCookies(boolean perGroupCookies)
|
void |
setUserCookie(org.apache.commons.httpclient.Cookie[] userCookie)
|
void |
updateHandleAssociatedInfo(java.lang.String originalHandle,
java.lang.String newHandle)
Update the mappings that were associated with the specified original portlet handle after it has been modified as a result of a clone operation to the specified new handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProducerSessionInformation()
Method Detail |
---|
public java.lang.String getParentSessionId()
public void setParentSessionId(java.lang.String parentSessionId)
parentSessionId
-
java.lang.IllegalStateException
- if an attempt is made to set the parent session id to a different one when it has
already been set.public java.lang.String getUserCookie()
public void setUserCookie(org.apache.commons.httpclient.Cookie[] userCookie)
public boolean isInitCookieDone()
public void setInitCookieDone(boolean initCookieDone)
public boolean isPerGroupCookies()
public void setPerGroupCookies(boolean perGroupCookies)
public void setGroupCookieFor(java.lang.String groupId, org.apache.commons.httpclient.Cookie[] cookies)
public java.lang.String getGroupCookieFor(java.lang.String groupId)
public void clearGroupCookies()
public void addSessionForPortlet(java.lang.String portletHandle, SessionContext sessionContext)
public java.lang.String getSessionIdForPortlet(java.lang.String portletHandle)
portletHandle
- the handle of the portlet for which the session id is to be retrieved
null
if there is no session associated with the
portlet or if the session has expired.public int getNumberOfSessions()
public java.lang.String removeSession(java.lang.String sessionId)
sessionId
-
null
if the session had already expiredpublic java.util.List removeSessions()
public java.lang.String removeSessionForPortlet(java.lang.String portletHandle)
portletHandle
-
null
if the session had already expiredpublic void replaceUserCookiesWith(ProducerSessionInformation currentSessionInfo)
public void updateHandleAssociatedInfo(java.lang.String originalHandle, java.lang.String newHandle)
originalHandle
- newHandle
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |