Class Cookie

java.lang.Object
io.webfolder.cdp.type.network.Cookie

public class Cookie
extends java.lang.Object
Cookie object
  • Constructor Summary

    Constructors 
    Constructor Description
    Cookie()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDomain()
    Cookie domain.
    java.lang.Double getExpires()
    Cookie expiration date as the number of seconds since the UNIX epoch.
    java.lang.String getName()
    Cookie name.
    java.lang.String getPath()
    Cookie path.
    CookiePriority getPriority()
    Cookie Priority
    CookieSameSite getSameSite()
    Cookie SameSite type.
    java.lang.Integer getSize()
    Cookie size.
    java.lang.String getValue()
    Cookie value.
    java.lang.Boolean isHttpOnly()
    True if cookie is http-only.
    java.lang.Boolean isSecure()
    True if cookie is secure.
    java.lang.Boolean isSession()
    True in case of session cookie.
    void setDomain​(java.lang.String domain)
    Cookie domain.
    void setExpires​(java.lang.Double expires)
    Cookie expiration date as the number of seconds since the UNIX epoch.
    void setHttpOnly​(java.lang.Boolean httpOnly)
    True if cookie is http-only.
    void setName​(java.lang.String name)
    Cookie name.
    void setPath​(java.lang.String path)
    Cookie path.
    void setPriority​(CookiePriority priority)
    Cookie Priority
    void setSameSite​(CookieSameSite sameSite)
    Cookie SameSite type.
    void setSecure​(java.lang.Boolean secure)
    True if cookie is secure.
    void setSession​(java.lang.Boolean session)
    True in case of session cookie.
    void setSize​(java.lang.Integer size)
    Cookie size.
    void setValue​(java.lang.String value)
    Cookie value.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getName

      public java.lang.String getName()
      Cookie name.
    • setName

      public void setName​(java.lang.String name)
      Cookie name.
    • getValue

      public java.lang.String getValue()
      Cookie value.
    • setValue

      public void setValue​(java.lang.String value)
      Cookie value.
    • getDomain

      public java.lang.String getDomain()
      Cookie domain.
    • setDomain

      public void setDomain​(java.lang.String domain)
      Cookie domain.
    • getPath

      public java.lang.String getPath()
      Cookie path.
    • setPath

      public void setPath​(java.lang.String path)
      Cookie path.
    • getExpires

      public java.lang.Double getExpires()
      Cookie expiration date as the number of seconds since the UNIX epoch.
    • setExpires

      public void setExpires​(java.lang.Double expires)
      Cookie expiration date as the number of seconds since the UNIX epoch.
    • getSize

      public java.lang.Integer getSize()
      Cookie size.
    • setSize

      public void setSize​(java.lang.Integer size)
      Cookie size.
    • isHttpOnly

      public java.lang.Boolean isHttpOnly()
      True if cookie is http-only.
    • setHttpOnly

      public void setHttpOnly​(java.lang.Boolean httpOnly)
      True if cookie is http-only.
    • isSecure

      public java.lang.Boolean isSecure()
      True if cookie is secure.
    • setSecure

      public void setSecure​(java.lang.Boolean secure)
      True if cookie is secure.
    • isSession

      public java.lang.Boolean isSession()
      True in case of session cookie.
    • setSession

      public void setSession​(java.lang.Boolean session)
      True in case of session cookie.
    • getSameSite

      public CookieSameSite getSameSite()
      Cookie SameSite type.
    • setSameSite

      public void setSameSite​(CookieSameSite sameSite)
      Cookie SameSite type.
    • getPriority

      public CookiePriority getPriority()
      Cookie Priority
    • setPriority

      public void setPriority​(CookiePriority priority)
      Cookie Priority