Package org.mockserver.model
Class Action<T extends Action>
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.Action<T>
- Direct Known Subclasses:
BinaryResponse,DnsResponse,GrpcBidiResponse,GrpcStreamResponse,HttpClassCallback,HttpError,HttpForward,HttpForwardValidateAction,HttpForwardWithFallback,HttpLlmResponse,HttpObjectCallback,HttpOverrideForwardedRequest,HttpResponse,HttpSseResponse,HttpTemplate,HttpWebSocketResponse
- Author:
- jamesdbloom
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDelay()abstract Action.TypegetType()inthashCode()booleansetExpectationId(String expectationId) The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)withPrimary(boolean primary) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
Action
public Action()
-
-
Method Details
-
withDelay
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)- Parameters:
delay- a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
-
withDelay
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)- Parameters:
timeUnit- the time unit, for example TimeUnit.SECONDSvalue- the number of time units to delay the response
-
getDelay
-
withPrimary
-
isPrimary
public boolean isPrimary() -
getExpectationId
-
setExpectationId
-
getType
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-