Uses of Class
org.mockserver.model.HttpForwardWithFallback
Packages that use HttpForwardWithFallback
Package
Description
-
Uses of HttpForwardWithFallback in org.mockserver.client
Methods in org.mockserver.client with parameters of type HttpForwardWithFallbackModifier and TypeMethodDescriptionForwardChainExpectation.forwardWithFallback(HttpForwardWithFallback httpForwardWithFallback) Forward request to the upstream host and return a fallback response when the upstream returns a configured status code (default 5xx) or times out. -
Uses of HttpForwardWithFallback in org.mockserver.mock
Methods in org.mockserver.mock that return HttpForwardWithFallbackMethods in org.mockserver.mock with parameters of type HttpForwardWithFallbackModifier and TypeMethodDescriptionExpectation.thenForwardWithFallback(HttpForwardWithFallback httpForwardWithFallback) -
Uses of HttpForwardWithFallback in org.mockserver.mock.action.http
Methods in org.mockserver.mock.action.http with parameters of type HttpForwardWithFallbackModifier and TypeMethodDescriptionHttpForwardWithFallbackActionHandler.handle(HttpForwardWithFallback action, HttpRequest httpRequest) -
Uses of HttpForwardWithFallback in org.mockserver.model
Methods in org.mockserver.model that return HttpForwardWithFallbackModifier and TypeMethodDescriptionstatic HttpForwardWithFallbackHttpForwardWithFallback.forwardWithFallback()Static builder to create a forward-with-fallback action.HttpForwardWithFallback.withFallback(HttpResponse fallbackResponse) The mock response to return when the upstream forward fails or returns a status code that matches the fallback criteria.HttpForwardWithFallback.withFallbackOnStatusCodes(Integer... statusCodes) The HTTP status codes that should trigger the fallback response.HttpForwardWithFallback.withFallbackOnStatusCodes(List<Integer> statusCodes) The HTTP status codes that should trigger the fallback response.HttpForwardWithFallback.withFallbackOnTimeout(Boolean fallbackOnTimeout) Whether to return the fallback response when the upstream request times out or a connection error occurs.HttpForwardWithFallback.withForward(HttpForward httpForward) The forward definition specifying the upstream host, port and scheme. -
Uses of HttpForwardWithFallback in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return HttpForwardWithFallbackConstructors in org.mockserver.serialization.model with parameters of type HttpForwardWithFallbackModifierConstructorDescriptionHttpForwardWithFallbackDTO(HttpForwardWithFallback httpForwardWithFallback)