Package org.mockserver.model
Class RequestDefinition
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.Not
org.mockserver.model.RequestDefinition
- Direct Known Subclasses:
BinaryRequestDefinition,DnsRequestDefinition,HttpRequest,HttpRequestPrettyPrintedDTO,HttpRequestTemplateObject,OpenAPIDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the epoch-millis timestamp at which MockServer first received this request, ornullif not yet set.inthashCode()abstract RequestDefinitionwithLogCorrelationId(String logCorrelationId) withReceivedTimestamp(Long receivedTimestamp) Sets the epoch-millis receive timestamp.Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
RequestDefinition
public RequestDefinition()
-
-
Method Details
-
getLogCorrelationId
-
withLogCorrelationId
-
getReceivedTimestamp
Returns the epoch-millis timestamp at which MockServer first received this request, ornullif not yet set. The timestamp is operational metadata — excluded fromequals/hashCodeand from JSON serialization, just likelogCorrelationId. -
withReceivedTimestamp
Sets the epoch-millis receive timestamp. Callers should useEpochService.currentTimeMillis()so that frozen-clock tests are deterministic. -
shallowClone
-
cloneWithLogCorrelationId
-
equals
-
hashCode
public int hashCode()
-