Package org.mockserver.mock.breakpoint
Class BreakpointDecision
java.lang.Object
org.mockserver.mock.breakpoint.BreakpointDecision
The resolution decision for a paused (breakpointed) exchange.
Three actions are supported:
BreakpointDecision.Action.CONTINUE- forward the original request unchangedBreakpointDecision.Action.MODIFY- forward a replacement requestBreakpointDecision.Action.ABORT- do not forward; return an abort response (or 503) to the client
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BreakpointDecisionabort(HttpResponse abortResponse) static BreakpointDecisionThe modified response (non-null only for RESPONSE-phase MODIFY decisions).static BreakpointDecisionmodify(HttpRequest modifiedRequest) Modify a REQUEST-phase exchange: forward a replacement request.static BreakpointDecisionmodifyResponse(HttpResponse modifiedResponse) Modify a RESPONSE-phase exchange: write a replacement response to the client.
-
Method Details
-
continueOriginal
-
modify
Modify a REQUEST-phase exchange: forward a replacement request. -
modifyResponse
Modify a RESPONSE-phase exchange: write a replacement response to the client. -
abort
-
getAction
-
getModifiedRequest
-
getModifiedResponse
The modified response (non-null only for RESPONSE-phase MODIFY decisions). -
getAbortResponse
-