Class CodecSessionConfig
- java.lang.Object
-
- org.wildfly.extension.undertow.session.CodecSessionConfig
-
- All Implemented Interfaces:
io.undertow.server.session.SessionConfig
public class CodecSessionConfig extends Object implements io.undertow.server.session.SessionConfig
SessionConfig
decorator that performs encoding/decoding of the session identifier. In this way, routing is completely opaque to the request, session, and session manager.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CodecSessionConfig(io.undertow.server.session.SessionConfig config, SessionIdentifierCodec codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearSession(io.undertow.server.HttpServerExchange exchange, String sessionId)
String
findSessionId(io.undertow.server.HttpServerExchange exchange)
String
rewriteUrl(String originalUrl, String sessionId)
io.undertow.server.session.SessionConfig.SessionCookieSource
sessionCookieSource(io.undertow.server.HttpServerExchange exchange)
void
setSessionId(io.undertow.server.HttpServerExchange exchange, String sessionId)
-
-
-
Constructor Detail
-
CodecSessionConfig
public CodecSessionConfig(io.undertow.server.session.SessionConfig config, SessionIdentifierCodec codec)
-
-
Method Detail
-
setSessionId
public void setSessionId(io.undertow.server.HttpServerExchange exchange, String sessionId)
- Specified by:
setSessionId
in interfaceio.undertow.server.session.SessionConfig
-
clearSession
public void clearSession(io.undertow.server.HttpServerExchange exchange, String sessionId)
- Specified by:
clearSession
in interfaceio.undertow.server.session.SessionConfig
-
findSessionId
public String findSessionId(io.undertow.server.HttpServerExchange exchange)
- Specified by:
findSessionId
in interfaceio.undertow.server.session.SessionConfig
-
sessionCookieSource
public io.undertow.server.session.SessionConfig.SessionCookieSource sessionCookieSource(io.undertow.server.HttpServerExchange exchange)
- Specified by:
sessionCookieSource
in interfaceio.undertow.server.session.SessionConfig
-
-