Class 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 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 interface io.undertow.server.session.SessionConfig
      • clearSession

        public void clearSession​(io.undertow.server.HttpServerExchange exchange,
                                 String sessionId)
        Specified by:
        clearSession in interface io.undertow.server.session.SessionConfig
      • findSessionId

        public String findSessionId​(io.undertow.server.HttpServerExchange exchange)
        Specified by:
        findSessionId in interface io.undertow.server.session.SessionConfig
      • sessionCookieSource

        public io.undertow.server.session.SessionConfig.SessionCookieSource sessionCookieSource​(io.undertow.server.HttpServerExchange exchange)
        Specified by:
        sessionCookieSource in interface io.undertow.server.session.SessionConfig
      • rewriteUrl

        public String rewriteUrl​(String originalUrl,
                                 String sessionId)
        Specified by:
        rewriteUrl in interface io.undertow.server.session.SessionConfig