Class HttpSessionWrapper
java.lang.Object
org.apache.felix.http.base.internal.handler.HttpSessionWrapper
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
The session wrapper keeps track of the internal session, manages their attributes
separately and also handles session timeout.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionWrapper(jakarta.servlet.http.HttpSession session, ExtServletContext context, org.apache.felix.http.base.internal.HttpConfig config, boolean terminate) Creates a newHttpSessionWrapperinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String name) longgetExpiredSessionContextNames(jakarta.servlet.http.HttpSession session) getId()longintjakarta.servlet.ServletContextgetSessionContextNames(jakarta.servlet.http.HttpSession session) Get the names of all contexts using a session.String[]inthashCode()static booleanhasSession(String contextName, jakarta.servlet.http.HttpSession session) voidbooleanisNew()voidvoidremoveAttribute(String name) voidremoveValue(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval)
-
Constructor Details
-
HttpSessionWrapper
public HttpSessionWrapper(jakarta.servlet.http.HttpSession session, ExtServletContext context, org.apache.felix.http.base.internal.HttpConfig config, boolean terminate) Creates a newHttpSessionWrapperinstance.
-
-
Method Details
-
hasSession
-
getExpiredSessionContextNames
-
getSessionContextNames
Get the names of all contexts using a session.- Parameters:
session- The underlying session- Returns:
- The set of names
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
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
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejakarta.servlet.http.HttpSession
-
getValue
-
getValueNames
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-
putValue
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
removeValue
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
hashCode
public int hashCode() -
equals
-