Class Cookie

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

public class Cookie extends Object
Cookie object
  • Constructor Details

    • Cookie

      public Cookie()
  • Method Details

    • getName

      public String getName()
      Cookie name.
    • setName

      public void setName(String name)
      Cookie name.
    • getValue

      public String getValue()
      Cookie value.
    • setValue

      public void setValue(String value)
      Cookie value.
    • getDomain

      public String getDomain()
      Cookie domain.
    • setDomain

      public void setDomain(String domain)
      Cookie domain.
    • getPath

      public String getPath()
      Cookie path.
    • setPath

      public void setPath(String path)
      Cookie path.
    • getExpires

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

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

      public Integer getSize()
      Cookie size.
    • setSize

      public void setSize(Integer size)
      Cookie size.
    • isHttpOnly

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

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

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

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

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

      public void setSession(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
    • isSameParty

      public Boolean isSameParty()
      True if cookie is SameParty.
    • setSameParty

      public void setSameParty(Boolean sameParty)
      True if cookie is SameParty.
    • getSourceScheme

      public CookieSourceScheme getSourceScheme()
      Cookie source scheme type.
    • setSourceScheme

      public void setSourceScheme(CookieSourceScheme sourceScheme)
      Cookie source scheme type.
    • getSourcePort

      public Integer getSourcePort()
      Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
    • setSourcePort

      public void setSourcePort(Integer sourcePort)
      Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
    • getPartitionKey

      public String getPartitionKey()
      Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
    • setPartitionKey

      public void setPartitionKey(String partitionKey)
      Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
    • isPartitionKeyOpaque

      public Boolean isPartitionKeyOpaque()
      True if cookie partition key is opaque.
    • setPartitionKeyOpaque

      public void setPartitionKeyOpaque(Boolean partitionKeyOpaque)
      True if cookie partition key is opaque.
    • toString

      public String toString()
      Overrides:
      toString in class Object