Class DistributableSession
- java.lang.Object
-
- org.wildfly.clustering.web.undertow.session.DistributableSession
-
- All Implemented Interfaces:
io.undertow.server.session.Session
public class DistributableSession extends Object implements io.undertow.server.session.Session
Adapts a distributableSessionto an UndertowSession.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributableSession(UndertowSessionManager manager, org.wildfly.clustering.web.session.Session<Map<String,Object>> session, io.undertow.server.session.SessionConfig config, org.wildfly.clustering.ee.Batch batch, Consumer<io.undertow.server.HttpServerExchange> closeTask)
-
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 exchange)ObjectsetAttribute(String name, Object value)voidsetMaxInactiveInterval(int interval)
-
-
-
Constructor Detail
-
DistributableSession
public DistributableSession(UndertowSessionManager manager, org.wildfly.clustering.web.session.Session<Map<String,Object>> session, io.undertow.server.session.SessionConfig config, org.wildfly.clustering.ee.Batch batch, Consumer<io.undertow.server.HttpServerExchange> closeTask)
-
-
Method Detail
-
getSessionManager
public io.undertow.server.session.SessionManager getSessionManager()
- Specified by:
getSessionManagerin interfaceio.undertow.server.session.Session
-
requestDone
public void requestDone(io.undertow.server.HttpServerExchange exchange)
- Specified by:
requestDonein interfaceio.undertow.server.session.Session
-
getId
public String getId()
- Specified by:
getIdin 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
-
getAttributeNames
public Set<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceio.undertow.server.session.Session
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein 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
-
-