Package org.mockserver.model
Class AfterAction
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.AfterAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AfterActionstatic AfterActionConvenience factory producing an action intended for use as a before-action.booleanBefore-actions only: whentrue(the default when unset) the primary response waits for this action to complete before being written; whenfalsethe action is started before the response but not waited for.getDelay()Before-actions only: what to do with the primary response when a blocking action fails or times out.Before-actions only: maximum time to wait for a blocking action to complete.inthashCode()withBlocking(Boolean blocking) withFailurePolicy(FailurePolicy failurePolicy) withHttpClassCallback(HttpClassCallback httpClassCallback) withHttpObjectCallback(HttpObjectCallback httpObjectCallback) withHttpRequest(HttpRequest httpRequest) withTimeout(Delay timeout) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
AfterAction
public AfterAction()
-
-
Method Details
-
afterAction
-
beforeAction
Convenience factory producing an action intended for use as a before-action. Identical toafterAction(); the same type backs bothbeforeActionsandafterActions. -
getHttpRequest
-
withHttpRequest
-
getHttpClassCallback
-
withHttpClassCallback
-
getHttpObjectCallback
-
withHttpObjectCallback
-
getDelay
-
withDelay
-
getBlocking
Before-actions only: whentrue(the default when unset) the primary response waits for this action to complete before being written; whenfalsethe action is started before the response but not waited for. Ignored for after-actions. -
withBlocking
-
getTimeout
Before-actions only: maximum time to wait for a blocking action to complete. When the timeout elapses the action is treated as failed (seegetFailurePolicy()). When unset only the underlying client's socket timeout applies. Ignored for after-actions. -
withTimeout
-
getFailurePolicy
Before-actions only: what to do with the primary response when a blocking action fails or times out. Defaults toFailurePolicy.BEST_EFFORTwhen unset. Ignored for after-actions. -
withFailurePolicy
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-