winstone
Class WinstoneSession

java.lang.Object
  extended by winstone.WinstoneSession
All Implemented Interfaces:
java.io.Serializable, HttpSession

public class WinstoneSession
extends java.lang.Object
implements HttpSession, java.io.Serializable

Http session implementation for Winstone.

Version:
$Id: WinstoneSession.java,v 1.10 2006/08/27 07:19:47 rickknowles Exp $
Author:
Rick Knowles
See Also:
Serialized Form

Field Summary
static java.lang.String SESSION_COOKIE_NAME
           
 
Constructor Summary
WinstoneSession(java.lang.String sessionId)
          Constructor
 
Method Summary
 void activate(WebAppConfiguration webAppConfig)
          Called after the session has been deserialized from another server.
 void addUsed(WinstoneRequest request)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 long getCreationTime()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 ServletContext getServletContext()
           
 HttpSessionContext getSessionContext()
          Deprecated.  
static java.io.File getSessionTempDir(WebAppConfiguration webAppConfig)
           
 java.lang.Object getValue(java.lang.String name)
          Deprecated.  
 java.lang.String[] getValueNames()
          Deprecated.  
 void invalidate()
           
 boolean isExpired()
           
 boolean isNew()
           
 boolean isUnusedByRequests()
           
static void loadSessions(WebAppConfiguration webAppConfig)
           
 void passivate()
          Called after the session has been serialized to another server.
 void putValue(java.lang.String name, java.lang.Object value)
          Deprecated.  
 void removeAttribute(java.lang.String name)
           
 void removeUsed(WinstoneRequest request)
           
 void removeValue(java.lang.String name)
          Deprecated.  
 void saveToTemp()
          Save this session to the temp dir defined for this webapp
 void sendCreatedNotifies()
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setIsNew(boolean isNew)
           
 void setLastAccessedDate(long time)
           
 void setMaxInactiveInterval(int interval)
           
 void setSessionActivationListeners(HttpSessionActivationListener[] listeners)
           
 void setSessionAttributeListeners(HttpSessionAttributeListener[] listeners)
           
 void setSessionListeners(HttpSessionListener[] listeners)
           
 void setWebAppConfiguration(WebAppConfiguration webAppConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_COOKIE_NAME

public static java.lang.String SESSION_COOKIE_NAME
Constructor Detail

WinstoneSession

public WinstoneSession(java.lang.String sessionId)
Constructor

Method Detail

setWebAppConfiguration

public void setWebAppConfiguration(WebAppConfiguration webAppConfig)

sendCreatedNotifies

public void sendCreatedNotifies()

setSessionActivationListeners

public void setSessionActivationListeners(HttpSessionActivationListener[] listeners)

setSessionAttributeListeners

public void setSessionAttributeListeners(HttpSessionAttributeListener[] listeners)

setSessionListeners

public void setSessionListeners(HttpSessionListener[] listeners)

setLastAccessedDate

public void setLastAccessedDate(long time)

setIsNew

public void setIsNew(boolean isNew)

addUsed

public void addUsed(WinstoneRequest request)

removeUsed

public void removeUsed(WinstoneRequest request)

isUnusedByRequests

public boolean isUnusedByRequests()

isExpired

public boolean isExpired()

getAttribute

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

getAttributeNames

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

setAttribute

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

removeAttribute

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

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface HttpSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface HttpSession

getId

public java.lang.String getId()
Specified by:
getId in interface HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface HttpSession

isNew

public boolean isNew()
Specified by:
isNew in interface HttpSession

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface HttpSession

invalidate

public void invalidate()
Specified by:
invalidate in interface HttpSession

passivate

public void passivate()
Called after the session has been serialized to another server.


activate

public void activate(WebAppConfiguration webAppConfig)
Called after the session has been deserialized from another server.


saveToTemp

public void saveToTemp()
Save this session to the temp dir defined for this webapp


getSessionTempDir

public static java.io.File getSessionTempDir(WebAppConfiguration webAppConfig)

loadSessions

public static void loadSessions(WebAppConfiguration webAppConfig)

getValue

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

Specified by:
getValue in interface HttpSession

putValue

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

Specified by:
putValue in interface HttpSession

removeValue

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

Specified by:
removeValue in interface HttpSession

getValueNames

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

Specified by:
getValueNames in interface HttpSession

getSessionContext

public HttpSessionContext getSessionContext()
Deprecated. 

Specified by:
getSessionContext in interface HttpSession


Copyright © 2013. All Rights Reserved.