Package org.apache.axis.transport.http
Class AxisHttpSession
- java.lang.Object
-
- org.apache.axis.transport.http.AxisHttpSession
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AXIS_SESSION_MARKER
-
Constructor Summary
Constructors Constructor Description AxisHttpSession(javax.servlet.http.HttpServletRequest realRequest)
AxisHttpSession(javax.servlet.http.HttpSession realSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureSession()
java.lang.Object
get(java.lang.String key)
Get a property from the sessionjava.util.Enumeration
getKeys()
Get an enumeration of the keys in this sessionjava.lang.Object
getLockObject()
Get an Object suitable for synchronizing the session.javax.servlet.http.HttpSession
getRep()
Get the internal HttpSession.int
getTimeout()
Return the sessions' time-to-live.void
invalidate()
invalidate the sessionvoid
remove(java.lang.String key)
Remove a property from the sessionvoid
set(java.lang.String key, java.lang.Object value)
Set a property in the sessionvoid
setTimeout(int timeout)
Set the session's time-to-live.void
touch()
"Touch" the session (mark it recently used)
-
-
-
Field Detail
-
AXIS_SESSION_MARKER
public static final java.lang.String AXIS_SESSION_MARKER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRep
public javax.servlet.http.HttpSession getRep()
Get the internal HttpSession.
-
get
public java.lang.Object get(java.lang.String key)
Get a property from the session
-
set
public void set(java.lang.String key, java.lang.Object value)
Set a property in the session
-
remove
public void remove(java.lang.String key)
Remove a property from the session
-
getKeys
public java.util.Enumeration getKeys()
Get an enumeration of the keys in this session
-
setTimeout
public void setTimeout(int timeout)
Set the session's time-to-live. This is implementation-specific, but basically should be the # of seconds of inactivity which will cause the session to time out and invalidate. "inactivity" is implementation-specific.- Specified by:
setTimeout
in interfaceSession
-
getTimeout
public int getTimeout()
Return the sessions' time-to-live.- Specified by:
getTimeout
in interfaceSession
- Returns:
- the timeout value for this session.
-
touch
public void touch()
"Touch" the session (mark it recently used)
-
invalidate
public void invalidate()
invalidate the session- Specified by:
invalidate
in interfaceSession
-
ensureSession
protected void ensureSession()
-
getLockObject
public java.lang.Object getLockObject()
Get an Object suitable for synchronizing the session. This method exists because different session implementations might provide different ways of getting at shared data. For a simple hashtable- based session, this would just be the hashtable, but for sessions which use database connections, etc. it might be an object wrapping a table ID or somesuch.- Specified by:
getLockObject
in interfaceSession
-
-