|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sr.server.http.HttpClientSession
public class HttpClientSession
Wrapper class of HttpSession
Constructor Summary | |
---|---|
HttpClientSession(javax.servlet.http.HttpSession session)
|
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String arg0)
Gives the attribute value that saved in the session previously |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Gives all attributes that are saved within the session |
java.lang.String |
getId()
Unique session identifier |
javax.servlet.http.HttpSession |
getWrappedSession()
Gives the protocol specific session object |
java.lang.Class<javax.servlet.http.HttpSession> |
getWrappedType()
gives the wrapped session object type |
void |
invalidate()
Invalidates the client session |
void |
removeAttribute(java.lang.String arg0)
Removes an attribute from the session |
void |
setAttribute(java.lang.String arg0,
java.lang.Object arg1)
Saves an attribute in client session |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpClientSession(javax.servlet.http.HttpSession session)
Method Detail |
---|
public java.lang.Object getAttribute(java.lang.String arg0)
IClientSessionInfo
getAttribute
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
arg0
- name of the attribute
public java.util.Enumeration<java.lang.String> getAttributeNames()
IClientSessionInfo
getAttributeNames
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
public java.lang.String getId()
IClientSessionInfo
getId
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
public void invalidate()
IClientSessionInfo
invalidate
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
public void removeAttribute(java.lang.String arg0)
IClientSessionInfo
removeAttribute
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
arg0
- name of the attributepublic void setAttribute(java.lang.String arg0, java.lang.Object arg1)
IClientSessionInfo
setAttribute
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
arg0
- name of the attributearg1
- value of the attribute. In order to support session serialization, save only serializable objectspublic javax.servlet.http.HttpSession getWrappedSession()
IClientSessionInfo
getWrappedSession
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
public java.lang.Class<javax.servlet.http.HttpSession> getWrappedType()
IClientSessionInfo
getWrappedType
in interface IClientSessionInfo<javax.servlet.http.HttpSession>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |