Interface SessionManager<S extends Session>

All Known Subinterfaces:
WebUiSessionManager

public interface SessionManager<S extends Session>
Management for basic http sessions. Useful for subsystems that want to control their own sessions without relying on the web container's (Jetty) default session management.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.ImmutableCollection<? extends S>
    get()
     
    Optional<? extends S>
    get(String id)
     
    static String
    getCookieName(jakarta.servlet.http.HttpServletRequest httpServletRequest, String cookieName)
    Prefixes the desired cookie name with "__Secure-" if the request's scheme is https
    getCookieValue(jakarta.servlet.http.HttpServletRequest httpServletRequest, String cookieName, LoggerEx log)
    Convenience method to fetch a cookie value from an HTTP request
  • Method Details

    • getCookieName

      static String getCookieName(jakarta.servlet.http.HttpServletRequest httpServletRequest, String cookieName)
      Prefixes the desired cookie name with "__Secure-" if the request's scheme is https
    • getCookieValue

      static Optional<String> getCookieValue(jakarta.servlet.http.HttpServletRequest httpServletRequest, String cookieName, LoggerEx log)
      Convenience method to fetch a cookie value from an HTTP request
    • get

      Optional<? extends S> get(String id)
    • get

      com.google.common.collect.ImmutableCollection<? extends S> get()