Record Class HarCache.HarCacheInfo
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarCache.HarCacheInfo
- Enclosing class:
HarCache
public static record HarCache.HarCacheInfo(@Nullable ZonedDateTime expires, @Nullable ZonedDateTime lastAccess, @Nullable String eTag, @Nullable Integer hitCount, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Information about a request coming from browser cache.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHarCacheInfo(ZonedDateTime expires, ZonedDateTime lastAccess, String eTag, Integer hitCount, String comment, Map<String, Object> additional) Creates an instance of aHarCacheInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.eTag()Returns the value of theeTagrecord component.expires()Returns the value of theexpiresrecord component.final inthashCode()Returns a hash code value for this object.hitCount()Returns the value of thehitCountrecord component.Returns the value of thelastAccessrecord component.voidsetAdditionalField(String key, Object value) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarCacheInfo
public HarCacheInfo() -
HarCacheInfo
public HarCacheInfo(@Nullable ZonedDateTime expires, @Nullable ZonedDateTime lastAccess, @Nullable String eTag, @Nullable Integer hitCount, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarCacheInforecord class.- Parameters:
expires- the value for theexpiresrecord componentlastAccess- the value for thelastAccessrecord componenteTag- the value for theeTagrecord componenthitCount- the value for thehitCountrecord 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). -
expires
Returns the value of theexpiresrecord component.- Returns:
- the value of the
expiresrecord component
-
lastAccess
Returns the value of thelastAccessrecord component.- Returns:
- the value of the
lastAccessrecord component
-
eTag
Returns the value of theeTagrecord component.- Returns:
- the value of the
eTagrecord component
-
hitCount
Returns the value of thehitCountrecord component.- Returns:
- the value of the
hitCountrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-