Record Class HarEntry
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarEntry
public record HarEntry(@Nullable String pageref, @Nullable ZonedDateTime startedDateTime, @Nullable Integer time, @Nonnull HarRequest request, @Nonnull HarResponse response, @Nonnull HarCache cache, @Nonnull HarTiming timings, @Nullable String serverIPAddress, @Nullable String connection, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Information about a single HTTP request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHarEntry()HarEntry(String pageref, ZonedDateTime startedDateTime, Integer time, HarRequest request, HarResponse response, HarCache cache, HarTiming timings, String serverIPAddress, String connection, String comment, Map<String, Object> additional) Creates an instance of aHarEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.cache()Returns the value of thecacherecord component.comment()Returns the value of thecommentrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pageref()Returns the value of thepagerefrecord component.request()Returns the value of therequestrecord component.response()Returns the value of theresponserecord component.Returns the value of theserverIPAddressrecord component.voidsetAdditionalField(String key, Object value) Returns the value of thestartedDateTimerecord component.time()Returns the value of thetimerecord component.timings()Returns the value of thetimingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarEntry
public HarEntry() -
HarEntry
public HarEntry(@Nullable String pageref, @Nullable ZonedDateTime startedDateTime, @Nullable Integer time, @Nullable HarRequest request, @Nullable HarResponse response, @Nullable HarCache cache, @Nullable HarTiming timings, @Nullable String serverIPAddress, @Nullable String connection, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarEntryrecord class.- Parameters:
pageref- the value for thepagerefrecord componentstartedDateTime- the value for thestartedDateTimerecord componenttime- the value for thetimerecord componentrequest- the value for therequestrecord componentresponse- the value for theresponserecord componentcache- the value for thecacherecord componenttimings- the value for thetimingsrecord componentserverIPAddress- the value for theserverIPAddressrecord componentconnection- the value for theconnectionrecord 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). -
pageref
Returns the value of thepagerefrecord component.- Returns:
- the value of the
pagerefrecord component
-
startedDateTime
Returns the value of thestartedDateTimerecord component.- Returns:
- the value of the
startedDateTimerecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
cache
Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-
timings
Returns the value of thetimingsrecord component.- Returns:
- the value of the
timingsrecord component
-
serverIPAddress
Returns the value of theserverIPAddressrecord component.- Returns:
- the value of the
serverIPAddressrecord component
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-