com.droplets.apix.servlet
Class DropletsHttpSession

java.lang.Object
  |
  +--com.droplets.apix.servlet.DropletsHttpSession
All Implemented Interfaces:
javax.servlet.http.HttpSession

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

Implements HttpSession and is meant to be used by DropletsHttpServletRequest to hold and share Session data.

Copyright: Copyright (c) 2003

Company: Droplets

$Header: /Lib/DropletAppApiJava/src/com/droplets/apix/servlet/DropletsHttpSession.java 2 3/11/03 12:10p Frank $


Constructor Summary
DropletsHttpSession()
          Constructor for DropletsHttpSession.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the attribute with the given 'name' previously set with setAttribute
 java.util.Enumeration getAttributeNames()
          Returns an Enumeration of all of the attribute names.
 long getCreationTime()
          The time that this Session object was created.
 java.lang.String getId()
          A unique ID for this Session object
 long getLastAccessedTime()
          Not supported.
 int getMaxInactiveInterval()
          Supported, but not used.
 javax.servlet.ServletContext getServletContext()
          Not supported.
 javax.servlet.http.HttpSessionContext getSessionContext()
          Not supported.
 java.lang.Object getValue(java.lang.String name)
          Returns the result of getAttribute(name)
 java.lang.String[] getValueNames()
          Not implemented.
 void invalidate()
          Not implmented
 boolean isNew()
          Not implemented.
 void logout()
          Not implemented
 void putValue(java.lang.String name, java.lang.Object value)
          Calls setAttribute(name, value)
 void removeAttribute(java.lang.String name)
          Removes the attribute from the attribute list
 void removeValue(java.lang.String name)
          Removes the attribute from the attribute list (by calling removeAttribute)
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets an attribute called 'name' to 'value'.
 void setMaxInactiveInterval(int interval)
          Supported, but not used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropletsHttpSession

public DropletsHttpSession()
Constructor for DropletsHttpSession. Although you may create objects of this class, they are typically created by DropletsHttpServletRequest and accessible with its getSession() method.
Method Detail

getCreationTime

public long getCreationTime()
The time that this Session object was created.
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
Returns:
The time that this Session object was created.

getId

public java.lang.String getId()
A unique ID for this Session object
Specified by:
getId in interface javax.servlet.http.HttpSession
Returns:
a unique ID for this Session object

getLastAccessedTime

public long getLastAccessedTime()
Not supported. Returns getCreationTime()
Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession
Returns:
the result of getCreationTime()

getServletContext

public javax.servlet.ServletContext getServletContext()
Not supported. Returns null. Subclasses may implement if necessary.
Returns:
null

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Supported, but not used. The argument will be returned by getMaxInactiveInterval()
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession
Parameters:
interval - used as the return value of getMaxInactiveInterval()

getMaxInactiveInterval

public int getMaxInactiveInterval()
Supported, but not used. The return is the argument of setMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession
Returns:
the argument of setMaxInactiveInterval()

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
Not supported. Returns null
Specified by:
getSessionContext in interface javax.servlet.http.HttpSession
Returns:
null

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Returns the attribute with the given 'name' previously set with setAttribute
Specified by:
getAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name of the requested attribute
Returns:
the attribute with the given 'name'

getValue

public java.lang.Object getValue(java.lang.String name)
Returns the result of getAttribute(name)
Specified by:
getValue in interface javax.servlet.http.HttpSession
Parameters:
name - the name of an attribute
Returns:
the value of getAttribute(name)

getAttributeNames

public java.util.Enumeration getAttributeNames()
Returns an Enumeration of all of the attribute names.
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession
Returns:
an Enumeration of all of the attribute names.

getValueNames

public java.lang.String[] getValueNames()
Not implemented. Return null. use getAttributeNames()
Specified by:
getValueNames in interface javax.servlet.http.HttpSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Sets an attribute called 'name' to 'value'. The value can be gotten later with getAttribute()
Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name of an attribute to be set
value - the value to set the attribute to

putValue

public void putValue(java.lang.String name,
                     java.lang.Object value)
Calls setAttribute(name, value)
Specified by:
putValue in interface javax.servlet.http.HttpSession
Parameters:
name - the name of an attribute to be set
value - the value to set the attribute to

removeAttribute

public void removeAttribute(java.lang.String name)
Removes the attribute from the attribute list
Specified by:
removeAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name of an attribute to remove

removeValue

public void removeValue(java.lang.String name)
Removes the attribute from the attribute list (by calling removeAttribute)
Specified by:
removeValue in interface javax.servlet.http.HttpSession
Parameters:
name - the name of an attribute to remove

invalidate

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

isNew

public boolean isNew()
Not implemented. Always returns false
Specified by:
isNew in interface javax.servlet.http.HttpSession
Returns:
false

logout

public void logout()
Not implemented


Copyright © Droplets, 2001. All Rights Reserved.