Package io.undertow.servlet.spec
Class HttpSessionImpl
java.lang.Object
io.undertow.servlet.spec.HttpSessionImpl
- All Implemented Interfaces:
javax.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 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpSessionImplforSession(io.undertow.server.session.Session session, javax.servlet.ServletContext servletContext, boolean newSession) getAttribute(String name) longgetId()longintjavax.servlet.ServletContextio.undertow.server.session.Sessionjavax.servlet.http.HttpSessionContextString[]inthashCode()voidbooleanbooleanisNew()voidvoidremoveAttribute(String name) voidremoveValue(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval)
-
Field Details
-
IO_UNDERTOW
- See Also:
-
-
Method Details
-
forSession
public static HttpSessionImpl forSession(io.undertow.server.session.Session session, javax.servlet.ServletContext servletContext, boolean newSession) -
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejavax.servlet.http.HttpSession
-
getId
- Specified by:
getIdin interfacejavax.servlet.http.HttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacejavax.servlet.http.HttpSession
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejavax.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacejavax.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejavax.servlet.http.HttpSession
-
getSessionContext
public javax.servlet.http.HttpSessionContext getSessionContext()- Specified by:
getSessionContextin interfacejavax.servlet.http.HttpSession
-
getAttribute
- Specified by:
getAttributein interfacejavax.servlet.http.HttpSession
-
getValue
- Specified by:
getValuein interfacejavax.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.servlet.http.HttpSession
-
getValueNames
- Specified by:
getValueNamesin interfacejavax.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttributein interfacejavax.servlet.http.HttpSession
-
putValue
- Specified by:
putValuein interfacejavax.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.servlet.http.HttpSession
-
removeValue
- Specified by:
removeValuein interfacejavax.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejavax.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejavax.servlet.http.HttpSession
-
getSession
public io.undertow.server.session.Session getSession() -
equals
-
hashCode
public int hashCode() -
isInvalid
public boolean isInvalid()
-