org.weborganic.bastille.pageseeder
Class PSSession

java.lang.Object
  extended by org.weborganic.bastille.pageseeder.PSSession
All Implemented Interfaces:
Serializable

public final class PSSession
extends Object
implements Serializable

A simple object to represent a PageSeeder session.

See Also:
Serialized Form

Constructor Summary
PSSession(String session)
          Create a new session with the specified ID.
 
Method Summary
 long age()
          Returns the age of this session.
 String getJSessionId()
           
 String toString()
           
 void update()
          Update the timestamp for this session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSSession

public PSSession(String session)
Create a new session with the specified ID.

Parameters:
session - The session ID.
Method Detail

getJSessionId

public String getJSessionId()
Returns:
the jsessionid

update

public void update()
Update the timestamp for this session.


age

public long age()
Returns the age of this session.

Returns:
The current time minus the timestamp.

toString

public String toString()
Overrides:
toString in class Object