Class Session
java.lang.Object
com.invirgance.convirgance.web.http.Session
Provides access to user's HTTP session information
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Returns the object bound with the specified name in this session, ornull
if no object is bound under the name.Returns anIterator
of String objects containing the names of all the objects bound to this session.void
setAttribute
(String name, Object value) Binds an object to this session, using the name specified.
-
Constructor Details
-
Session
-
-
Method Details
-
getAttribute
Returns the object bound with the specified name in this session, ornull
if no object is bound under the name.- Parameters:
name
- a string specifying the name of the object- Returns:
- the object with the specified name
- Throws:
IllegalStateException
- if this method is called on an invalidated session
-
setAttribute
Binds an object to this session, using the name specified. If an object of the same name is already bound to the session, the object is replaced.- Parameters:
name
- the name to which the object is boundvalue
- the object to be bound- Throws:
IllegalStateException
- if this method is called on an invalidated session
-
getAttributeNames
Returns anIterator
of String objects containing the names of all the objects bound to this session.- Returns:
- an
Iterator
of String objects specifying the names of all the objects bound to this session - Throws:
IllegalStateException
- if this method is called on an invalidated session
-