Class Session

java.lang.Object
com.invirgance.convirgance.web.http.Session

public class Session extends Object
Provides access to user's HTTP session information
Author:
jbanes
  • Constructor Details

    • Session

      public Session(Object session)
  • Method Details

    • getAttribute

      public Object getAttribute(String name)
      Returns the object bound with the specified name in this session, or null 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

      public void setAttribute(String name, Object value)
      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 bound
      value - the object to be bound
      Throws:
      IllegalStateException - if this method is called on an invalidated session
    • getAttributeNames

      public Iterable<String> getAttributeNames()
      Returns an Iterator 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