|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.wsrp.consumer.ProducerSessionInformation
Records session and cookie information for a producer.
Nested Class Summary | |
private class |
ProducerSessionInformation.SessionInfo
|
Field Summary | |
private java.util.Map |
groupCookies
group id -> Cookie[] |
private boolean |
initCookieDone
|
private org.jboss.logging.Logger |
log
|
private boolean |
perGroupCookies
|
private java.util.Map |
portletSessions
portlet handle -> SessionInfo |
private org.apache.commons.httpclient.Cookie[] |
userCookie
|
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 |
getSessionIdForPortlet(java.lang.String portletHandle)
Retrieves the session id for the portlet with the specified handle. |
java.lang.String |
getUserCookie()
|
boolean |
isInitCookieDone()
|
boolean |
isPerGroupCookies()
|
private java.lang.String |
outputToExternalForm(org.apache.commons.httpclient.Cookie[] cookies)
Create a String representation of the specified array of Cookies. |
private org.apache.commons.httpclient.Cookie[] |
purgeExpiredCookies(org.apache.commons.httpclient.Cookie[] cookies)
Purges the expired cookies in the specified array. |
void |
removeSessionIdForPortlet(java.lang.String portletHandle)
|
void |
replaceUserCookiesWith(ProducerSessionInformation currentSessionInfo)
|
void |
setGroupCookieFor(java.lang.String groupId,
org.apache.commons.httpclient.Cookie[] cookies)
|
void |
setInitCookieDone(boolean initCookieDone)
|
void |
setPerGroupCookies(boolean perGroupCookies)
|
void |
setUserCookie(org.apache.commons.httpclient.Cookie[] userCookie)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.jboss.logging.Logger log
private boolean initCookieDone
private boolean perGroupCookies
private java.util.Map groupCookies
private java.util.Map portletSessions
private org.apache.commons.httpclient.Cookie[] userCookie
Constructor Detail |
public ProducerSessionInformation()
Method Detail |
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 void removeSessionIdForPortlet(java.lang.String portletHandle)
public int getNumberOfSessions()
public void replaceUserCookiesWith(ProducerSessionInformation currentSessionInfo)
private java.lang.String outputToExternalForm(org.apache.commons.httpclient.Cookie[] cookies)
cookies
- the cookies to be output to external form
private org.apache.commons.httpclient.Cookie[] purgeExpiredCookies(org.apache.commons.httpclient.Cookie[] cookies)
cookies
- the cookies to be purged
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |