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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.undertow.server.session.SessionConfig

    io.undertow.server.session.SessionConfig.SessionCookieSource
  • Field Summary

    Fields inherited from interface io.undertow.server.session.SessionConfig

    ATTACHMENT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CodecSessionConfig(io.undertow.server.session.SessionConfig config, SessionIdentifierCodec codec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clearSession(io.undertow.server.HttpServerExchange exchange, String sessionId)
     
    findSessionId(io.undertow.server.HttpServerExchange exchange)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CodecSessionConfig

      public CodecSessionConfig(io.undertow.server.session.SessionConfig config, SessionIdentifierCodec codec)
  • Method Details

    • 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