Class SessionHandler.CookieConfig

All Implemented Interfaces:
Enclosing class:

public final class SessionHandler.CookieConfig extends Object implements jakarta.servlet.SessionCookieConfig
CookieConfig Implementation of the jakarta.servlet.SessionCookieConfig. SameSite configuration can be achieved by using setComment
See Also:
  • Constructor Details

    • CookieConfig

      public CookieConfig()
  • Method Details

    • getComment

      public String getComment()
      Specified by:
      getComment in interface jakarta.servlet.SessionCookieConfig
    • getDomain

      public String getDomain()
      Specified by:
      getDomain in interface jakarta.servlet.SessionCookieConfig
    • getMaxAge

      public int getMaxAge()
      Specified by:
      getMaxAge in interface jakarta.servlet.SessionCookieConfig
    • getName

      public String getName()
      Specified by:
      getName in interface jakarta.servlet.SessionCookieConfig
    • getPath

      public String getPath()
      Specified by:
      getPath in interface jakarta.servlet.SessionCookieConfig
    • isHttpOnly

      public boolean isHttpOnly()
      Specified by:
      isHttpOnly in interface jakarta.servlet.SessionCookieConfig
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface jakarta.servlet.SessionCookieConfig
    • setComment

      public void setComment(String comment)
      Specified by:
      setComment in interface jakarta.servlet.SessionCookieConfig
    • setDomain

      public void setDomain(String domain)
      Specified by:
      setDomain in interface jakarta.servlet.SessionCookieConfig
    • setHttpOnly

      public void setHttpOnly(boolean httpOnly)
      Specified by:
      setHttpOnly in interface jakarta.servlet.SessionCookieConfig
    • setMaxAge

      public void setMaxAge(int maxAge)
      Specified by:
      setMaxAge in interface jakarta.servlet.SessionCookieConfig
    • setName

      public void setName(String name)
      Specified by:
      setName in interface jakarta.servlet.SessionCookieConfig
    • setPath

      public void setPath(String path)
      Specified by:
      setPath in interface jakarta.servlet.SessionCookieConfig
    • setSecure

      public void setSecure(boolean secure)
      Specified by:
      setSecure in interface jakarta.servlet.SessionCookieConfig