org.apache.jcs.utils.servlet.session
Class MetaHttpSession

java.lang.Object
  extended byorg.apache.jcs.utils.servlet.session.MetaHttpSession

class MetaHttpSession
extends java.lang.Object

Used to contain an http session and/or the associated information.

Author:
asmuts

Field Summary
(package private)  javax.servlet.http.HttpSession sess
          The http session.
(package private)  java.lang.String session_id
          The corresponding cookie id of the http session.
 
Constructor Summary
(package private) MetaHttpSession(java.lang.String session_id, javax.servlet.http.HttpSession sess)
          Constructs with the given session id, and the http session.
 
Method Summary
(package private)  boolean valid()
          Returns true iff both the session id and the http session are not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session_id

final java.lang.String session_id
The corresponding cookie id of the http session.


sess

final javax.servlet.http.HttpSession sess
The http session.

Constructor Detail

MetaHttpSession

MetaHttpSession(java.lang.String session_id,
                javax.servlet.http.HttpSession sess)
Constructs with the given session id, and the http session. Both values can be null.

Parameters:
session_id -
sess -
Method Detail

valid

boolean valid()
Returns true iff both the session id and the http session are not null.