de.oio.bugkilla.protocol
Class HttpSession

java.lang.Object
  |
  +--de.oio.bugkilla.protocol.HttpSession
All Implemented Interfaces:
java.io.Serializable

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

Represent one Session-Object

Author:
aspall
See Also:
Serialized Form

Constructor Summary
HttpSession()
          Construct a new HttpSession
HttpSession(java.lang.String id)
          Construct a new HttpSession with a specified Identity-String
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the Attribute specified by its name (identifier)
 java.util.Enumeration getAttributeNames()
          Returns a Enumeration of all names (identifiers) of the Attribute-Hashtable
 java.util.Hashtable getAttributes()
          Returns the Attributes of the HttpSession
 long getCreationTime()
          Returns the creation time the the HttpSession
 java.lang.String getId()
          Returns the Identity of the HttpSession
 long getLastAccessedTime()
          Returns the last accessed time of the HttpSession
 int getMaxInactiveInterval()
          Returns the maximum inacitve interval of the HttpSession
 void setAttribute(java.lang.String name, java.lang.Object obj)
          Sets one Attribute to the Attribute-Hashtable of the HttpSession
 void setAttributes(java.util.Hashtable attributes)
          Sets the Attributes of the HttpSession
 void setCreationTime(long creationTime)
          Sets the creation time of the HttpSession
 void setId(java.lang.String id)
          Sets the Identity of the HttpSession
 void setLastAccessedTime(long lastAccessedTime)
          Sets the last accessed time of the HttpSession
 void setMaxInactiveInterval(int maxInactiveInterval)
          Sets the maximum inacitve interval of the HttpSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSession

public HttpSession(java.lang.String id)
Construct a new HttpSession with a specified Identity-String

Parameters:
id - Identity-String

HttpSession

public HttpSession()
Construct a new HttpSession

Method Detail

getCreationTime

public long getCreationTime()
Returns the creation time the the HttpSession

Returns:
the creation time of the HttpSession

setCreationTime

public void setCreationTime(long creationTime)
Sets the creation time of the HttpSession

Parameters:
creationTime - the creation time of the HttpSession

getLastAccessedTime

public long getLastAccessedTime()
Returns the last accessed time of the HttpSession

Returns:
the last accessed time of the HttpSession

setLastAccessedTime

public void setLastAccessedTime(long lastAccessedTime)
Sets the last accessed time of the HttpSession

Parameters:
lastAccessedTime - the last accessd time of the HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Returns the maximum inacitve interval of the HttpSession

Returns:
the maximum inacitve interval of the HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int maxInactiveInterval)
Sets the maximum inacitve interval of the HttpSession

Parameters:
maxInactiveInterval - the maximum inacitve interval of the HttpSession

getId

public java.lang.String getId()
Returns the Identity of the HttpSession

Returns:
id the Identity of the HttpSession

setId

public void setId(java.lang.String id)
Sets the Identity of the HttpSession

Parameters:
id - the Identity of the HttpSession

setAttributes

public void setAttributes(java.util.Hashtable attributes)
Sets the Attributes of the HttpSession

Parameters:
attributes - the Attributes of the HttpSession

getAttributes

public java.util.Hashtable getAttributes()
Returns the Attributes of the HttpSession

Returns:
the Attributes of the HttpSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object obj)
Sets one Attribute to the Attribute-Hashtable of the HttpSession

Parameters:
name - Name (identifier) of the Attribute
obj - Object represents the Attribute

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Returns the Attribute specified by its name (identifier)

Parameters:
name - the attributes name
Returns:
the specified Attribute

getAttributeNames

public java.util.Enumeration getAttributeNames()
Returns a Enumeration of all names (identifiers) of the Attribute-Hashtable

Returns:
a Enumeration of all names of the Attribute-Hashtable


Copyright © Orientation in Objects GmbH. All Rights Reserved.