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:
HttpClassCallback,HttpError,HttpForward,HttpObjectCallback,HttpOverrideForwardedRequest,HttpResponse,HttpTemplate
public abstract class Action<T extends Action> extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAction.Directionstatic classAction.Type
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DelaygetDelay()abstract Action.TypegetType()TwithDelay(TimeUnit timeUnit, long value)The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)TwithDelay(Delay delay)The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Method Detail
-
withDelay
public T withDelay(Delay delay)
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
public T withDelay(TimeUnit timeUnit, long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)- Parameters:
timeUnit- a the time unit, for example TimeUnit.SECONDSvalue- a the number of time units to delay the response
-
getDelay
public Delay getDelay()
-
getType
public abstract Action.Type getType()
-
-