Package io.javalin.mock.servlet
Class InMemoryHttpSession
-
- All Implemented Interfaces:
-
jakarta.servlet.http.HttpSession
public final class InMemoryHttpSession implements HttpSession
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInMemoryHttpSession.HttpSessionState
-
Field Summary
Fields Modifier and Type Field Description private final InMemoryHttpSession.HttpSessionStatestate
-
Constructor Summary
Constructors Constructor Description InMemoryHttpSession(InMemoryHttpSession.HttpSessionState state)
-
Method Summary
Modifier and Type Method Description final InMemoryHttpSession.HttpSessionStategetState()LonggetCreationTime()StringgetId()LonggetLastAccessedTime()UnitsetMaxInactiveInterval(Integer interval)IntegergetMaxInactiveInterval()ObjectgetAttribute(String name)Enumeration<String>getAttributeNames()UnitsetAttribute(String name, Object value)UnitremoveAttribute(String name)ObjectgetValue(String name)Array<String>getValueNames()UnitputValue(String name, Object value)UnitremoveValue(String name)HttpSessionContextgetSessionContext()ServletContextgetServletContext()Unitinvalidate()BooleanisNew()-
-
Constructor Detail
-
InMemoryHttpSession
InMemoryHttpSession(InMemoryHttpSession.HttpSessionState state)
-
-
Method Detail
-
getState
final InMemoryHttpSession.HttpSessionState getState()
-
getCreationTime
Long getCreationTime()
-
getLastAccessedTime
Long getLastAccessedTime()
-
setMaxInactiveInterval
Unit setMaxInactiveInterval(Integer interval)
-
getMaxInactiveInterval
Integer getMaxInactiveInterval()
-
getAttribute
Object getAttribute(String name)
-
getAttributeNames
Enumeration<String> getAttributeNames()
-
setAttribute
Unit setAttribute(String name, Object value)
-
removeAttribute
Unit removeAttribute(String name)
-
getValue
@Deprecated(message = "Deprecated in Java") Object getValue(String name)
-
getValueNames
@Deprecated(message = "Deprecated in Java") Array<String> getValueNames()
-
putValue
@Deprecated(message = "Deprecated in Java") Unit putValue(String name, Object value)
-
removeValue
@Deprecated(message = "Deprecated in Java") Unit removeValue(String name)
-
getSessionContext
@Deprecated(message = "Deprecated in Java") HttpSessionContext getSessionContext()
-
getServletContext
ServletContext getServletContext()
-
invalidate
Unit invalidate()
-
-
-
-