Class SessionHandler.CookieConfig

java.lang.Object
org.eclipse.jetty.ee10.servlet.SessionHandler.CookieConfig
All Implemented Interfaces:
jakarta.servlet.SessionCookieConfig
Enclosing class:
SessionHandler

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
    • setAttribute

      public void setAttribute(String name, String value)
      Specified by:
      setAttribute in interface jakarta.servlet.SessionCookieConfig
    • getAttribute

      public String getAttribute(String name)
      Specified by:
      getAttribute in interface jakarta.servlet.SessionCookieConfig
    • getAttributes

      public Map<String,String> getAttributes()
      According to the SessionCookieConfig javadoc, the attributes must also include all values set by explicit setters.
      Specified by:
      getAttributes in interface jakarta.servlet.SessionCookieConfig
      See Also:
      • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object