|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.session.SessionInfo
com.stratelia.silverpeas.peasCore.HTTPSessionInfo
public class HTTPSessionInfo
Information on the HTTP session opened by a Silverpeas user to access the Silverpeas Web pages. It wraps the HttpSession instance created by Silverpeas for a given user and it delegates all the session attribute setting to the wrapped HttpSession instance. So it can be used in a such context as an HTTP session itself. The HTTPSessionInfo objects are mainly used for the users accessing Silverpeas with their WEB browser. It is not yet used in the management of sessions for REST-based web service clients.
| Field Summary |
|---|
| Fields inherited from class com.silverpeas.session.SessionInfo |
|---|
AnonymousSession, NoneSession |
| Constructor Summary | |
|---|---|
HTTPSessionInfo(javax.servlet.http.HttpSession session,
String IP,
UserDetail ud)
Prevent the class from being instantiate (private) |
|
| Method Summary | ||
|---|---|---|
|
getAttribute(String name)
Gets the value of the attribute named by the specified name. |
|
javax.servlet.http.HttpSession |
getHttpSession()
Gets the HTTP session backed by this session information. |
|
void |
onClosed()
Frees the allocated resources used in the session management and carried by this session information. |
|
|
setAttribute(String name,
T value)
Sets an attribute named by the specified name with the specified value. |
|
void |
unsetAttribute(String name)
Unsets the specified attribute. |
|
| Methods inherited from class com.silverpeas.session.SessionInfo |
|---|
getCache, getIPAddress, getLastAccessTimestamp, getLastIdleDuration, getOpeningTimestamp, getSessionId, getUserDetail, isDefined, setAsIdle, setIPAddress, updateLastAccess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPSessionInfo(javax.servlet.http.HttpSession session,
String IP,
UserDetail ud)
session - the HTTP session to wrap.IP - the remote user host address IP.ud - the detail about the connected user.| Method Detail |
|---|
public void onClosed()
SessionInfo
onClosed in class SessionInfopublic javax.servlet.http.HttpSession getHttpSession()
public <T> void setAttribute(String name,
T value)
SessionInfo
setAttribute in class SessionInfoT - the type of the attribute value.name - the name of the attribute to set.value - the value of the attribute to set.public void unsetAttribute(String name)
SessionInfo
unsetAttribute in class SessionInfoname - the name of the attibute to unset.public <T> T getAttribute(String name)
SessionInfo
getAttribute in class SessionInfoT - the type of the attribute value.name - the name of the attribute to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||