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
SessionConfigdecorator 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 voidclearSession(io.undertow.server.HttpServerExchange exchange, String sessionId)StringfindSessionId(io.undertow.server.HttpServerExchange exchange)StringrewriteUrl(String originalUrl, String sessionId)io.undertow.server.session.SessionConfig.SessionCookieSourcesessionCookieSource(io.undertow.server.HttpServerExchange exchange)voidsetSessionId(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:
setSessionIdin interfaceio.undertow.server.session.SessionConfig
-
clearSession
public void clearSession(io.undertow.server.HttpServerExchange exchange, String sessionId)- Specified by:
clearSessionin interfaceio.undertow.server.session.SessionConfig
-
findSessionId
public String findSessionId(io.undertow.server.HttpServerExchange exchange)
- Specified by:
findSessionIdin interfaceio.undertow.server.session.SessionConfig
-
sessionCookieSource
public io.undertow.server.session.SessionConfig.SessionCookieSource sessionCookieSource(io.undertow.server.HttpServerExchange exchange)
- Specified by:
sessionCookieSourcein interfaceio.undertow.server.session.SessionConfig
-
-