FileDocCategorySizeDatePackage
Session.javaAPI DocApache Axis 1.42583Sat Apr 22 18:57:28 BST 2006org.apache.axis.session

Session

public interface Session
An abstract interface to provide session storage to Axis services. This is extremely basic at the moment.
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectget(java.lang.String key)
Get a property from the session

param
key the name of the property desired.

public java.util.EnumerationgetKeys()
Get an enumeration of the keys in this session

public java.lang.ObjectgetLockObject()
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.

public intgetTimeout()
Return the sessions' time-to-live.

return
the timeout value for this session.

public voidinvalidate()
invalidate the session

public voidremove(java.lang.String key)
Remove a property from the session

param
key the name of the property desired.

public voidset(java.lang.String key, java.lang.Object value)
Set a property in the session

param
key the name of the property to set.
param
value the value of the property.

public voidsetTimeout(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.

public voidtouch()
"Touch" the session (mark it recently used)