- All Implemented Interfaces:
Session
A session implementation bound to HTTP.
-
Constructor Summary
Constructors
HTTPSession(jakarta.servlet.http.HttpServletRequest request)
-
Method Summary
Get a variable from the session by the key.
jakarta.servlet.http.HttpSession
void
Put a variable into the session with a key.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HTTPSession
public HTTPSession(jakarta.servlet.http.HttpServletRequest request)
-
Method Details
-
get
Description copied from interface: Session
Get a variable from the session by the key.
- Specified by:
get in interface Session
- Returns:
- Value
-
put
Description copied from interface: Session
Put a variable into the session with a key.
- Specified by:
put in interface Session
-
getSession
public jakarta.servlet.http.HttpSession getSession()