org.apache.axis.session
Interface Session

All Known Implementing Classes:
SimpleSession, AxisHttpSession

public interface Session

An abstract interface to provide session storage to Axis services. This is extremely basic at the moment.

Author:
Glen Daniels (gdaniels@macromedia.com)

Method Summary
 java.lang.Object get(java.lang.String key)
          Get a property from the session
 java.util.Enumeration getKeys()
          Get an enumeration of the keys in this session
 int getTimeout()
          Return the sessions' time-to-live.
 void remove(java.lang.String key)
          Remove a property from the session
 void set(java.lang.String key, java.lang.Object value)
          Set a property in the session
 void setTimeout(int timeout)
          Set the session's time-to-live.
 void touch()
          "Touch" the session (mark it recently used)
 

Method Detail

get

public java.lang.Object get(java.lang.String key)
Get a property from the session
Parameters:
key - the name of the property desired.

set

public void set(java.lang.String key,
                java.lang.Object value)
Set a property in the session
Parameters:
key - the name of the property to set.
value - the value of the property.

remove

public void remove(java.lang.String key)
Remove a property from the session
Parameters:
key - the name of the property desired.

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.

getTimeout

public int getTimeout()
Return the sessions' time-to-live.
Returns:
the timeout value for this session.

touch

public void touch()
"Touch" the session (mark it recently used)


Copyright © 2002 Apache XML Project. All Rights Reserved.