Package org.mockserver.mock.action.http
Class HttpForwardWithFallbackActionHandler
java.lang.Object
org.mockserver.mock.action.http.HttpForwardAction
org.mockserver.mock.action.http.HttpForwardWithFallbackActionHandler
Handles forward-with-fallback actions: forwards the request to the upstream
host defined by the
HttpForward; if the upstream returns a status code
matching the fallback criteria (default 500-599) or the request times out /
fails to connect, the configured fallback HttpResponse is returned
instead.-
Field Summary
Fields inherited from class org.mockserver.mock.action.http.HttpForwardAction
configuration, mockServerLogger -
Constructor Summary
ConstructorsConstructorDescriptionHttpForwardWithFallbackActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpForwardWithFallback action, HttpRequest httpRequest) Methods inherited from class org.mockserver.mock.action.http.HttpForwardAction
adjustHostHeader, sendRequest, sendRequest
-
Constructor Details
-
HttpForwardWithFallbackActionHandler
public HttpForwardWithFallbackActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient)
-
-
Method Details
-
handle
-