Package org.apache.openejb.server.httpd
Class ServletSessionAdapter
java.lang.Object
org.apache.openejb.server.httpd.ServletSessionAdapter
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession,HttpSession
- Direct Known Subclasses:
HttpRequestImpl.SessionInvalidateListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the object bound with the specified name in this session, ornullif no object is bound under the name.longgetId()Returns a string containing the unique identifier assigned to this session.longintjakarta.servlet.ServletContextvoidbooleanisNew()voidremoveAttribute(String name) voidsetAttribute(String name, Object value) Binds an object to this session, using the name specified.voidsetMaxInactiveInterval(int i)
-
Field Details
-
session
protected final jakarta.servlet.http.HttpSession session
-
-
Constructor Details
-
ServletSessionAdapter
public ServletSessionAdapter(jakarta.servlet.http.HttpSession session)
-
-
Method Details
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejakarta.servlet.http.HttpSession
-
getId
Description copied from interface:HttpSessionReturns a string containing the unique identifier assigned to this session. The identifier is assigned by the ejb container and is implementation dependent.- Specified by:
getIdin interfacejakarta.servlet.http.HttpSession- Specified by:
getIdin interfaceHttpSession- Returns:
- a string specifying the identifier assigned to this session
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacejakarta.servlet.http.HttpSession
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejakarta.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int i) - Specified by:
setMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getAttribute
Description copied from interface:HttpSessionReturns the object bound with the specified name in this session, ornullif no object is bound under the name.- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession- Specified by:
getAttributein interfaceHttpSession- Parameters:
name- a string specifying the name of the object- Returns:
- the object with the specified name
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
setAttribute
Description copied from interface:HttpSessionBinds 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:
setAttributein interfacejakarta.servlet.http.HttpSession- Specified by:
setAttributein interfaceHttpSession- Parameters:
name- the name to which the object is bound; cannot be nullvalue- the object to be bound
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession- Specified by:
removeAttributein interfaceHttpSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-