org.jpublish.servlet
Class HttpSessionWrap

java.lang.Object
  |
  +--org.jpublish.servlet.HttpSessionWrap
All Implemented Interfaces:
javax.servlet.http.HttpSession

public class HttpSessionWrap
extends java.lang.Object
implements javax.servlet.http.HttpSession

A concrete wrapper for the HttpSession interface. This wrapper is required to be able to place the session into the Velocity context.

Author:
Anthony Eden

Constructor Summary
HttpSessionWrap(javax.servlet.http.HttpSession session)
          Construct an HttpSessionWrap around the given session.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 long getCreationTime()
          Get the creation time of the session.
 java.lang.String getId()
          Get the session ID
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
          Deprecated.  
 java.lang.Object getValue(java.lang.String name)
          Deprecated.  
 java.lang.String[] getValueNames()
          Deprecated.  
 void invalidate()
           
 boolean isNew()
           
 void putValue(java.lang.String name, java.lang.Object value)
          Deprecated.  
 void removeAttribute(java.lang.String name)
           
 void removeValue(java.lang.String name)
          Deprecated.  
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionWrap

public HttpSessionWrap(javax.servlet.http.HttpSession session)
Construct an HttpSessionWrap around the given session.
Parameters:
session - The HttpSession
Method Detail

getCreationTime

public long getCreationTime()
Get the creation time of the session.
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
Returns:
The creation time

getId

public java.lang.String getId()
Get the session ID
Specified by:
getId in interface javax.servlet.http.HttpSession
Returns:
The session ID

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession

isNew

public boolean isNew()
Specified by:
isNew in interface javax.servlet.http.HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface javax.servlet.http.HttpSession

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface javax.servlet.http.HttpSession

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface javax.servlet.http.HttpSession

invalidate

public void invalidate()
Specified by:
invalidate in interface javax.servlet.http.HttpSession

getValue

public java.lang.Object getValue(java.lang.String name)
Deprecated.  

Specified by:
getValue in interface javax.servlet.http.HttpSession

getValueNames

public java.lang.String[] getValueNames()
Deprecated.  

Specified by:
getValueNames in interface javax.servlet.http.HttpSession

putValue

public void putValue(java.lang.String name,
                     java.lang.Object value)
Deprecated.  

Specified by:
putValue in interface javax.servlet.http.HttpSession

removeValue

public void removeValue(java.lang.String name)
Deprecated.  

Specified by:
removeValue in interface javax.servlet.http.HttpSession

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
Deprecated.  

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession


Copyright (C) 2001 Anthony Eden. All Rights Reserved.