javax.servlet.http
Interface HttpSession

All Known Implementing Classes:
WinstoneSession

public interface HttpSession

Interface for http sessions on the server.

Author:
Rick Knowles

Method Summary
 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. As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API.
 java.lang.Object getValue(java.lang.String name)
          Deprecated. As of Version 2.2, this method is replaced by getAttribute(java.lang.String).
 java.lang.String[] getValueNames()
          Deprecated. As of Version 2.2, this method is replaced by getAttributeNames()
 void invalidate()
           
 boolean isNew()
           
 void putValue(java.lang.String name, java.lang.Object value)
          Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object)
 void removeAttribute(java.lang.String name)
           
 void removeValue(java.lang.String name)
          Deprecated. As of Version 2.2, this method is replaced by removeAttribute(java.lang.String)
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setMaxInactiveInterval(int interval)
           
 

Method Detail

getAttribute

java.lang.Object getAttribute(java.lang.String name)

getAttributeNames

java.util.Enumeration getAttributeNames()

getCreationTime

long getCreationTime()

getId

java.lang.String getId()

getLastAccessedTime

long getLastAccessedTime()

getMaxInactiveInterval

int getMaxInactiveInterval()

getServletContext

ServletContext getServletContext()

invalidate

void invalidate()

isNew

boolean isNew()

removeAttribute

void removeAttribute(java.lang.String name)

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object value)

setMaxInactiveInterval

void setMaxInactiveInterval(int interval)

getSessionContext

HttpSessionContext getSessionContext()
Deprecated. As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API.


getValue

java.lang.Object getValue(java.lang.String name)
Deprecated. As of Version 2.2, this method is replaced by getAttribute(java.lang.String).


getValueNames

java.lang.String[] getValueNames()
Deprecated. As of Version 2.2, this method is replaced by getAttributeNames()


putValue

void putValue(java.lang.String name,
              java.lang.Object value)
Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object)


removeValue

void removeValue(java.lang.String name)
Deprecated. As of Version 2.2, this method is replaced by removeAttribute(java.lang.String)



Copyright © 2013. All Rights Reserved.