Package org.atmosphere.util
Class FakeHttpSession
java.lang.Object
org.atmosphere.util.FakeHttpSession
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
-
Constructor Summary
ConstructorsConstructorDescriptionFakeHttpSession(jakarta.servlet.http.HttpSession session) FakeHttpSession(String sessionId, jakarta.servlet.ServletContext servletContext, long creationTime, int maxInactiveInterval) -
Method Summary
Modifier and TypeMethodDescriptioncopyAttributes(jakarta.servlet.http.HttpSession httpSession) voiddestroy()getAttribute(String name) longgetId()longintjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionContextString[]voidbooleanisNew()voidvoidremoveAttribute(String name) voidremoveValue(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval)
-
Constructor Details
-
FakeHttpSession
public FakeHttpSession(String sessionId, jakarta.servlet.ServletContext servletContext, long creationTime, int maxInactiveInterval) -
FakeHttpSession
public FakeHttpSession(jakarta.servlet.http.HttpSession session)
-
-
Method Details
-
destroy
public void destroy() -
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
-
getSessionContext
public jakarta.servlet.http.HttpSessionContext getSessionContext()- Specified by:
getSessionContextin interfacejakarta.servlet.http.HttpSession
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession
-
getValue
- Specified by:
getValuein interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
getValueNames
- Specified by:
getValueNamesin interfacejakarta.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession
-
putValue
- Specified by:
putValuein interfacejakarta.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
removeValue
- Specified by:
removeValuein interfacejakarta.servlet.http.HttpSession
-
copyAttributes
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-