Class SessionHandler.ServletSessionApi
java.lang.Object
org.eclipse.jetty.ee10.servlet.SessionHandler.ServletSessionApi
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession,org.eclipse.jetty.server.Session.API
- Enclosing class:
SessionHandler
public static class SessionHandler.ServletSessionApi
extends Object
implements jakarta.servlet.http.HttpSession, org.eclipse.jetty.server.Session.API
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) longgetId()longintjakarta.servlet.ServletContextorg.eclipse.jetty.session.ManagedSessionstatic org.eclipse.jetty.session.ManagedSessiongetSession(jakarta.servlet.http.HttpSession httpSession) voidbooleanisNew()voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval) wrapSession(org.eclipse.jetty.session.ManagedSession session)
-
Method Details
-
wrapSession
public static SessionHandler.ServletSessionApi wrapSession(org.eclipse.jetty.session.ManagedSession session) -
getSession
public static org.eclipse.jetty.session.ManagedSession getSession(jakarta.servlet.http.HttpSession httpSession) -
getSession
public org.eclipse.jetty.session.ManagedSession getSession()- Specified by:
getSessionin interfaceorg.eclipse.jetty.server.Session.API
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejakarta.servlet.http.HttpSession
-
getId
- Specified by:
getIdin interfacejakarta.servlet.http.HttpSession
-
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 interval) - Specified by:
setMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getAttribute
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
setAttribute
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-