Package io.webfolder.cdp.type.network
Class Cookie
java.lang.Object
io.webfolder.cdp.type.network.Cookie
Cookie object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCookie domain.Cookie expiration date as the number of seconds since the UNIX epoch.getName()
Cookie name.Cookie partition key.getPath()
Cookie path.Cookie PriorityCookie SameSite type.getSize()
Cookie size.Cookie source port.Cookie source scheme type.getValue()
Cookie value.True if cookie is http-only.True if cookie partition key is opaque.True if cookie is SameParty.isSecure()
True if cookie is secure.True in case of session cookie.void
Cookie domain.void
setExpires
(Double expires) Cookie expiration date as the number of seconds since the UNIX epoch.void
setHttpOnly
(Boolean httpOnly) True if cookie is http-only.void
Cookie name.void
setPartitionKey
(String partitionKey) Cookie partition key.void
setPartitionKeyOpaque
(Boolean partitionKeyOpaque) True if cookie partition key is opaque.void
Cookie path.void
setPriority
(CookiePriority priority) Cookie Priorityvoid
setSameParty
(Boolean sameParty) True if cookie is SameParty.void
setSameSite
(CookieSameSite sameSite) Cookie SameSite type.void
True if cookie is secure.void
setSession
(Boolean session) True in case of session cookie.void
Cookie size.void
setSourcePort
(Integer sourcePort) Cookie source port.void
setSourceScheme
(CookieSourceScheme sourceScheme) Cookie source scheme type.void
Cookie value.toString()
-
Constructor Details
-
Cookie
public Cookie()
-
-
Method Details
-
getName
Cookie name. -
setName
Cookie name. -
getValue
Cookie value. -
setValue
Cookie value. -
getDomain
Cookie domain. -
setDomain
Cookie domain. -
getPath
Cookie path. -
setPath
Cookie path. -
getExpires
Cookie expiration date as the number of seconds since the UNIX epoch. -
setExpires
Cookie expiration date as the number of seconds since the UNIX epoch. -
getSize
Cookie size. -
setSize
Cookie size. -
isHttpOnly
True if cookie is http-only. -
setHttpOnly
True if cookie is http-only. -
isSecure
True if cookie is secure. -
setSecure
True if cookie is secure. -
isSession
True in case of session cookie. -
setSession
True in case of session cookie. -
getSameSite
Cookie SameSite type. -
setSameSite
Cookie SameSite type. -
getPriority
Cookie Priority -
setPriority
Cookie Priority -
isSameParty
True if cookie is SameParty. -
setSameParty
True if cookie is SameParty. -
getSourceScheme
Cookie source scheme type. -
setSourceScheme
Cookie source scheme type. -
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
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
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
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
True if cookie partition key is opaque. -
setPartitionKeyOpaque
True if cookie partition key is opaque. -
toString
-