Record Class HarCookie
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarCookie
public record HarCookie(@Nullable String name, @Nullable String value, @Nullable String path, @Nullable String domain, @Nullable ZonedDateTime expires, @Nullable Boolean httpOnly, @Nullable Boolean secure, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Information about a cookie used in request and/or response.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.comment()Returns the value of thecommentrecord component.domain()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.secure()Returns the value of thesecurerecord component.voidsetAdditionalField(String key, Object value) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
HarCookie
public HarCookie() -
HarCookie
public HarCookie(@Nullable String name, @Nullable String value, @Nullable String path, @Nullable String domain, @Nullable ZonedDateTime expires, @Nullable Boolean httpOnly, @Nullable Boolean secure, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarCookierecord 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 componentcomment- the value for thecommentrecord componentadditional- the value for theadditionalrecord component
-
-
Method Details
-
additional
-
setAdditionalField
-
toString
-
hashCode
-
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
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-