Methods Summary |
---|
protected void | ensureSession()
if (rep == null) {
setRep(req.getSession());
}
|
public java.lang.Object | get(java.lang.String key)Get a property from the session
ensureSession();
return rep.getAttribute(key);
|
public java.util.Enumeration | getKeys()Get an enumeration of the keys in this session
ensureSession();
return rep.getAttributeNames();
|
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.
ensureSession();
return rep;
|
public javax.servlet.http.HttpSession | getRep()Get the internal HttpSession.
ensureSession();
return rep;
|
public int | getTimeout()Return the sessions' time-to-live.
ensureSession();
return rep.getMaxInactiveInterval();
|
public void | invalidate()invalidate the session
rep.invalidate();
|
public void | remove(java.lang.String key)Remove a property from the session
ensureSession();
rep.removeAttribute(key);
|
public void | set(java.lang.String key, java.lang.Object value)Set a property in the session
ensureSession();
rep.setAttribute(key, value);
|
private void | setRep(javax.servlet.http.HttpSession realSession)Set our internal HttpSession to the passed
servlet HttpSession. Not sure if we'll really
need this method...
rep = realSession;
rep.setAttribute(AXIS_SESSION_MARKER, Boolean.TRUE);
|
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.
ensureSession();
rep.setMaxInactiveInterval(timeout);
|
public void | touch()"Touch" the session (mark it recently used)
// ???
|