Package org.apache.openejb.server.httpd
Interface HttpSession
- All Superinterfaces:
jakarta.servlet.http.HttpSession
- All Known Implementing Classes:
HttpRequestImpl.SessionInvalidateListener,HttpSessionImpl,ServletSessionAdapter
public interface HttpSession
extends jakarta.servlet.http.HttpSession
-
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.getId()Returns a string containing the unique identifier assigned to this session.voidremoveAttribute(String name) voidsetAttribute(String name, Object value) Binds an object to this session, using the name specified.Methods inherited from interface jakarta.servlet.http.HttpSession
getAttributeNames, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getServletContext, invalidate, isNew, setMaxInactiveInterval
-
Method Details
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
getAttribute
Returns 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- Parameters:
name- a string specifying the name of the object- Returns:
- the object with the specified name
-
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.- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession- Parameters:
name- the name to which the object is bound; cannot be nullvalue- the object to be bound
-
getId
String getId()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:
getIdin interfacejakarta.servlet.http.HttpSession- Returns:
- a string specifying the identifier assigned to this session
-