Package io.undertow.servlet.spec
Class HttpSessionImpl
- java.lang.Object
-
- io.undertow.servlet.spec.HttpSessionImpl
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
public class HttpSessionImpl extends Object implements jakarta.servlet.http.HttpSession
The HTTP session implementation. Note that for security reasons no attribute names that start with io.undertow are allowed.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpSessionImpl.UnwrapSessionAction
-
Field Summary
Fields Modifier and Type Field Description static StringIO_UNDERTOW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static HttpSessionImplforSession(Session session, jakarta.servlet.ServletContext servletContext, boolean newSession)ObjectgetAttribute(String name)Enumeration<String>getAttributeNames()longgetCreationTime()StringgetId()longgetLastAccessedTime()intgetMaxInactiveInterval()jakarta.servlet.ServletContextgetServletContext()SessiongetSession()inthashCode()voidinvalidate()booleanisInvalid()booleanisNew()voidremoveAttribute(String name)voidsetAttribute(String name, Object value)voidsetMaxInactiveInterval(int interval)
-
-
-
Field Detail
-
IO_UNDERTOW
public static final String IO_UNDERTOW
- See Also:
- Constant Field Values
-
-
Method Detail
-
forSession
public static HttpSessionImpl forSession(Session session, jakarta.servlet.ServletContext servletContext, boolean newSession)
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfacejakarta.servlet.http.HttpSession
-
getId
public String 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
public Object getAttribute(String name)
- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession
-
removeAttribute
public void removeAttribute(String name)
- 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
-
getSession
public Session getSession()
-
isInvalid
public boolean isInvalid()
-
-