Package io.qameta.allure.http
Record Class HttpExchangeCookie
java.lang.Object
java.lang.Record
io.qameta.allure.http.HttpExchangeCookie
- Record Components:
name- the cookie namevalue- the cookie valuepath- the cookie pathdomain- the cookie domainexpires- the cookie expiration valuehttpOnly- true when the cookie is HTTP-onlysecure- true when the cookie is securesameSite- the cookie SameSite value
public record HttpExchangeCookie(String name, String value, String path, String domain, String expires, Boolean httpOnly, Boolean secure, String sameSite)
extends Record
HTTP cookie captured in an exchange attachment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.expires()Returns the value of theexpiresrecord component.final inthashCode()Returns a hash code value for this object.httpOnly()Returns the value of thehttpOnlyrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.sameSite()Returns the value of thesameSiterecord component.secure()Returns the value of thesecurerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
HttpExchangeCookie
public HttpExchangeCookie(String name, String value, String path, String domain, String expires, Boolean httpOnly, Boolean secure, String sameSite) Creates an instance of aHttpExchangeCookierecord class.- Parameters:
name- the value for thenamerecord componentvalue- the value for thevaluerecord componentpath- the value for thepathrecord componentdomain- the value for thedomainrecord componentexpires- the value for theexpiresrecord componenthttpOnly- the value for thehttpOnlyrecord componentsecure- the value for thesecurerecord componentsameSite- the value for thesameSiterecord component
-
HttpExchangeCookie
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
expires
Returns the value of theexpiresrecord component.- Returns:
- the value of the
expiresrecord component
-
httpOnly
Returns the value of thehttpOnlyrecord component.- Returns:
- the value of the
httpOnlyrecord component
-
secure
Returns the value of thesecurerecord component.- Returns:
- the value of the
securerecord component
-
sameSite
Returns the value of thesameSiterecord component.- Returns:
- the value of the
sameSiterecord component
-