Package org.atmosphere.util
Class FakeHttpSession
java.lang.Object
org.atmosphere.util.FakeHttpSession
- All Implemented Interfaces:
HttpSession
-
Constructor Summary
ConstructorsConstructorDescriptionFakeHttpSession(HttpSession session) FakeHttpSession(String sessionId, ServletContext servletContext, long creationTime, int maxInactiveInterval) -
Method Summary
Modifier and TypeMethodDescriptioncopyAttributes(HttpSession httpSession) voiddestroy()getAttribute(String name) longgetId()longintString[]voidbooleanisNew()voidvoidremoveAttribute(String name) voidremoveValue(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval)
-
Constructor Details
-
FakeHttpSession
public FakeHttpSession(String sessionId, ServletContext servletContext, long creationTime, int maxInactiveInterval) -
FakeHttpSession
-
-
Method Details
-
destroy
public void destroy() -
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfaceHttpSession
-
getId
- Specified by:
getIdin interfaceHttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfaceHttpSession
-
getServletContext
- Specified by:
getServletContextin interfaceHttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfaceHttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfaceHttpSession
-
getSessionContext
- Specified by:
getSessionContextin interfaceHttpSession
-
getAttribute
- Specified by:
getAttributein interfaceHttpSession
-
getValue
- Specified by:
getValuein interfaceHttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceHttpSession
-
getValueNames
- Specified by:
getValueNamesin interfaceHttpSession
-
setAttribute
- Specified by:
setAttributein interfaceHttpSession
-
putValue
- Specified by:
putValuein interfaceHttpSession
-
removeAttribute
- Specified by:
removeAttributein interfaceHttpSession
-
removeValue
- Specified by:
removeValuein interfaceHttpSession
-
copyAttributes
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceHttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceHttpSession
-