Class DistributableImmutableSession
- java.lang.Object
-
- org.wildfly.clustering.web.undertow.session.DistributableImmutableSession
-
- All Implemented Interfaces:
io.undertow.server.session.Session
public class DistributableImmutableSession extends Object implements io.undertow.server.session.Session
Undertow adapter for anImmutableSession.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributableImmutableSession(io.undertow.server.session.SessionManager manager, ImmutableSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringchangeSessionId(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)ObjectgetAttribute(String name)Set<String>getAttributeNames()longgetCreationTime()StringgetId()longgetLastAccessedTime()intgetMaxInactiveInterval()io.undertow.server.session.SessionManagergetSessionManager()voidinvalidate(io.undertow.server.HttpServerExchange exchange)ObjectremoveAttribute(String name)voidrequestDone(io.undertow.server.HttpServerExchange serverExchange)ObjectsetAttribute(String name, Object value)voidsetMaxInactiveInterval(int interval)
-
-
-
Constructor Detail
-
DistributableImmutableSession
public DistributableImmutableSession(io.undertow.server.session.SessionManager manager, ImmutableSession session)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceio.undertow.server.session.Session
-
getSessionManager
public io.undertow.server.session.SessionManager getSessionManager()
- Specified by:
getSessionManagerin interfaceio.undertow.server.session.Session
-
requestDone
public void requestDone(io.undertow.server.HttpServerExchange serverExchange)
- Specified by:
requestDonein interfaceio.undertow.server.session.Session
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfaceio.undertow.server.session.Session
-
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTimein interfaceio.undertow.server.session.Session
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveIntervalin interfaceio.undertow.server.session.Session
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- Specified by:
setMaxInactiveIntervalin interfaceio.undertow.server.session.Session
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceio.undertow.server.session.Session
-
getAttributeNames
public Set<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceio.undertow.server.session.Session
-
setAttribute
public Object setAttribute(String name, Object value)
- Specified by:
setAttributein interfaceio.undertow.server.session.Session
-
removeAttribute
public Object removeAttribute(String name)
- Specified by:
removeAttributein interfaceio.undertow.server.session.Session
-
invalidate
public void invalidate(io.undertow.server.HttpServerExchange exchange)
- Specified by:
invalidatein interfaceio.undertow.server.session.Session
-
changeSessionId
public String changeSessionId(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)
- Specified by:
changeSessionIdin interfaceio.undertow.server.session.Session
-
-