站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

AxisHttpSession (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.transport.http
Class AxisHttpSession

java.lang.Object
  extended byorg.apache.axis.transport.http.AxisHttpSession
All Implemented Interfaces:
Session

public class AxisHttpSession
extends Object
implements Session

An HTTP/Servlet implementation of Axis sessions.

Author:
Glen Daniels (gdaniels@macromedia.com)

Constructor Summary
AxisHttpSession(javax.servlet.http.HttpServletRequest realRequest)
           
AxisHttpSession(javax.servlet.http.HttpSession realSession)
           
 
Method Summary
protected  void ensureSession()
           
 Object get(String key)
          Get a property from the session
 Enumeration getKeys()
          Get an enumeration of the keys in this session
 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 remove(String key)
          Remove a property from the session
 void set(String key, Object value)
          Set a property in the session
 void setRep(javax.servlet.http.HttpSession realSession)
          Set our internal HttpSession to the passed servlet HttpSession.
 void setTimeout(int timeout)
          Set the session's time-to-live.
 void touch()
          "Touch" the session (mark it recently used)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisHttpSession

public AxisHttpSession(javax.servlet.http.HttpServletRequest realRequest)

AxisHttpSession

public AxisHttpSession(javax.servlet.http.HttpSession realSession)
Method Detail

getRep

public javax.servlet.http.HttpSession getRep()
Get the internal HttpSession.


setRep

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


get

public Object get(String key)
Get a property from the session

Specified by:
get in interface Session
Parameters:
key - the name of the property desired.

set

public void set(String key,
                Object value)
Set a property in the session

Specified by:
set in interface Session
Parameters:
key - the name of the property to set.
value - the value of the property.

remove

public void remove(String key)
Remove a property from the session

Specified by:
remove in interface Session
Parameters:
key - the name of the property desired.

getKeys

public Enumeration getKeys()
Get an enumeration of the keys in this session

Specified by:
getKeys in interface 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 interface Session

getTimeout

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

Specified by:
getTimeout in interface Session
Returns:
the timeout value for this session.

touch

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

Specified by:
touch in interface Session

ensureSession

protected void ensureSession()

getLockObject

public 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 interface Session


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.