jet.servlet
Class JetSession

java.lang.Object
  extended by jet.servlet.JetSession
All Implemented Interfaces:
javax.servlet.http.HttpSession, Resetable

public class JetSession
extends java.lang.Object
implements javax.servlet.http.HttpSession, Resetable

Author:
Markus Meisters

Field Summary
static java.lang.String KEY
          key for pooling
(package private)  java.util.TreeMap map
          mapped data
private  javax.servlet.http.HttpSession session
          holds the httpsession
 
Constructor Summary
JetSession()
          Constructor
 
Method Summary
 boolean containsSession()
          Indicates if a session exists
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 long getCreationTime()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
           
 java.lang.Object getValue(java.lang.String name)
           
 java.lang.String[] getValueNames()
           
 void init(javax.servlet.http.HttpSession session, java.util.TreeMap map)
          init method
 void invalidate()
           
 boolean isNew()
           
 void putValue(java.lang.String name, java.lang.Object object)
           
 void removeAttribute(java.lang.String name)
           
 void removeValue(java.lang.String name)
           
 void reset()
           
 void setAttribute(java.lang.String string, java.lang.Object object)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
key for pooling

See Also:
Constant Field Values

session

private javax.servlet.http.HttpSession session
holds the httpsession


map

java.util.TreeMap map
mapped data

Constructor Detail

JetSession

public JetSession()
Constructor

Method Detail

init

public void init(javax.servlet.http.HttpSession session,
                 java.util.TreeMap map)
init method

Parameters:
session - http session
map - data map

isNew

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

getAttribute

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

getAttributeNames

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

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
See Also:
HttpSession.getCreationTime()

getId

public java.lang.String getId()
Specified by:
getId in interface javax.servlet.http.HttpSession
See Also:
HttpSession.getId()

getLastAccessedTime

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

getMaxInactiveInterval

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

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface javax.servlet.http.HttpSession
See Also:
HttpSession.getServletContext()

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
Specified by:
getSessionContext in interface javax.servlet.http.HttpSession
See Also:
HttpSession.getSessionContext()

getValue

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

getValueNames

public java.lang.String[] getValueNames()
Specified by:
getValueNames in interface javax.servlet.http.HttpSession
See Also:
HttpSession.getValueNames()

invalidate

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

putValue

public void putValue(java.lang.String name,
                     java.lang.Object object)
Specified by:
putValue in interface javax.servlet.http.HttpSession
See Also:
HttpSession.putValue(String, Object)

removeAttribute

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

removeValue

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

setMaxInactiveInterval

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

setAttribute

public void setAttribute(java.lang.String string,
                         java.lang.Object object)
Specified by:
setAttribute in interface javax.servlet.http.HttpSession
See Also:
HttpSession.setAttribute(String, Object)

reset

public void reset()
Specified by:
reset in interface Resetable
See Also:
Resetable.reset()

containsSession

public boolean containsSession()
Indicates if a session exists