org.apache.openejb.server.httpd
Class HttpSessionImpl

java.lang.Object
  extended by org.apache.openejb.server.httpd.HttpSessionImpl
All Implemented Interfaces:
javax.servlet.http.HttpSession

public class HttpSessionImpl
extends Object
implements HttpSession


Constructor Summary
HttpSessionImpl()
           
HttpSessionImpl(ConcurrentMap<String,HttpSession> sessions)
           
 
Method Summary
 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.
 Enumeration<String> getAttributeNames()
           
 long getCreationTime()
           
 String getId()
          Returns a string containing the unique identifier assigned to this session.
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
           
 Object getValue(String s)
           
 String[] getValueNames()
           
 void invalidate()
           
 boolean isNew()
           
 void putValue(String s, Object o)
           
 void removeAttribute(String name)
           
 void removeValue(String s)
           
 void setAttribute(String name, Object value)
          Binds an object to this session, using the name specified.
 void setMaxInactiveInterval(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionImpl

public HttpSessionImpl(ConcurrentMap<String,HttpSession> sessions)

HttpSessionImpl

public HttpSessionImpl()
Method Detail

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface javax.servlet.http.HttpSession

removeValue

public void removeValue(String s)
Specified by:
removeValue in interface javax.servlet.http.HttpSession

invalidate

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

isNew

public boolean isNew()
Specified by:
isNew in interface javax.servlet.http.HttpSession

getAttribute

public Object getAttribute(String name)
Description copied from interface: HttpSession
Returns the object bound with the specified name in this session, or null if no object is bound under the name.

Specified by:
getAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - a string specifying the name of the object
Returns:
the object with the specified name

getValue

public Object getValue(String s)
Specified by:
getValue in interface javax.servlet.http.HttpSession

getAttributeNames

public Enumeration<String> getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession

getValueNames

public String[] getValueNames()
Specified by:
getValueNames in interface javax.servlet.http.HttpSession

setAttribute

public void setAttribute(String name,
                         Object value)
Description copied from interface: HttpSession
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.

Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name to which the object is bound; cannot be null
value - the object to be bound

putValue

public void putValue(String s,
                     Object o)
Specified by:
putValue in interface javax.servlet.http.HttpSession

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession

getId

public String getId()
Description copied from interface: HttpSession
Returns a string containing the unique identifier assigned to this session. The identifier is assigned by the ejb container and is implementation dependent.

Specified by:
getId in interface javax.servlet.http.HttpSession
Returns:
a string specifying the identifier assigned to this session

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface javax.servlet.http.HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int i)
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
Specified by:
getSessionContext in interface javax.servlet.http.HttpSession


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.