Class HttpCookie

java.lang.Object
jakarta.ws.rs.core.Cookie
jakarta.ws.rs.core.NewCookie
org.keycloak.http.HttpCookie

@Deprecated(since="24.0.0", forRemoval=true) public final class HttpCookie extends jakarta.ws.rs.core.NewCookie
Deprecated, for removal: This API element is subject to removal in a future version.
This class will be removed in the future. Please use NewCookie.Builder
An extension of javax.ws.rs.core.Cookie in order to support additional fields and behavior.
  • Nested Class Summary

    Nested classes/interfaces inherited from class jakarta.ws.rs.core.NewCookie

    jakarta.ws.rs.core.NewCookie.AbstractNewCookieBuilder<T extends jakarta.ws.rs.core.NewCookie.AbstractNewCookieBuilder<T>>, jakarta.ws.rs.core.NewCookie.Builder, jakarta.ws.rs.core.NewCookie.SameSite

    Nested classes/interfaces inherited from class jakarta.ws.rs.core.Cookie

    jakarta.ws.rs.core.Cookie.AbstractCookieBuilder<T extends jakarta.ws.rs.core.Cookie.AbstractCookieBuilder<T>>
  • Field Summary

    Fields inherited from class jakarta.ws.rs.core.NewCookie

    DEFAULT_MAX_AGE

    Fields inherited from class jakarta.ws.rs.core.Cookie

    DEFAULT_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpCookie(int version, String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly, ServerCookie.SameSiteAttributeValue sameSite)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class jakarta.ws.rs.core.NewCookie

    equals, getComment, getExpiry, getMaxAge, getSameSite, hashCode, isHttpOnly, isSecure, toCookie, toString, valueOf

    Methods inherited from class jakarta.ws.rs.core.Cookie

    getDomain, getName, getPath, getValue, getVersion

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • toHeaderValue

      public String toHeaderValue()
      Deprecated, for removal: This API element is subject to removal in a future version.