Package org.apache.axis.transport.http
Class AxisHttpSession
java.lang.Object
org.apache.axis.transport.http.AxisHttpSession
- All Implemented Interfaces:
Session
An HTTP/Servlet implementation of Axis sessions.
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAxisHttpSession(javax.servlet.http.HttpServletRequest realRequest) AxisHttpSession(javax.servlet.http.HttpSession realSession) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet a property from the sessiongetKeys()Get an enumeration of the keys in this sessionGet an Object suitable for synchronizing the session.javax.servlet.http.HttpSessiongetRep()Get the internal HttpSession.intReturn the sessions' time-to-live.voidinvalidate the sessionvoidRemove a property from the sessionvoidSet a property in the sessionvoidsetTimeout(int timeout) Set the session's time-to-live.voidtouch()"Touch" the session (mark it recently used)
-
Field Details
-
AXIS_SESSION_MARKER
- See Also:
-
-
Constructor Details
-
AxisHttpSession
public AxisHttpSession(javax.servlet.http.HttpServletRequest realRequest) -
AxisHttpSession
public AxisHttpSession(javax.servlet.http.HttpSession realSession)
-
-
Method Details
-
getRep
public javax.servlet.http.HttpSession getRep()Get the internal HttpSession. -
get
Get a property from the session -
set
Set a property in the session -
remove
Remove a property from the session -
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:
setTimeoutin interfaceSession
-
getTimeout
public int getTimeout()Return the sessions' time-to-live.- Specified by:
getTimeoutin 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:
invalidatein interfaceSession
-
ensureSession
protected void ensureSession() -
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:
getLockObjectin interfaceSession
-