org.abstracthorizon.danube.http.session
Class Session

java.lang.Object
  extended by org.abstracthorizon.danube.http.session.Session

public class Session
extends Object

Simple session object

Author:
Daniel Sendula

Field Summary
protected  Map<String,Object> attributes
          Session attributes
protected  long lastAccessed
          Time when session is accessed
protected  String sessionId
          Session id
 
Constructor Summary
Session(String sessionId)
          Constructor
 
Method Summary
 Map<String,Object> getAttributes()
          Returns session attributes
 long getLastAccessed()
          Returns value of {lastAccessed field.
 String getSessionId()
          Returns session id
protected  void resetAccess()
          Sets lastAccessed field to current time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected Map<String,Object> attributes
Session attributes


lastAccessed

protected long lastAccessed
Time when session is accessed


sessionId

protected String sessionId
Session id

Constructor Detail

Session

public Session(String sessionId)
Constructor

Parameters:
sessionId - session id
Method Detail

getSessionId

public String getSessionId()
Returns session id

Returns:
session id

getAttributes

public Map<String,Object> getAttributes()
Returns session attributes

Returns:
session attributes

getLastAccessed

public long getLastAccessed()
Returns value of {lastAccessed field.

Returns:
value of {lastAccessed field.

resetAccess

protected void resetAccess()
Sets lastAccessed field to current time.



Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.