Class SimpleSessionConfig

  • All Implemented Interfaces:
    io.undertow.server.session.SessionConfig

    public class SimpleSessionConfig
    extends Object
    implements io.undertow.server.session.SessionConfig
    SessionConfig implementation that returns a fixed sessionId.
    Author:
    Paul Ferraro
    • Constructor Detail

      • SimpleSessionConfig

        public SimpleSessionConfig​(String sessionId)
    • 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