Package org.mockserver.model
Class HttpOverrideForwardedRequest
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Action<HttpOverrideForwardedRequest>
-
- org.mockserver.model.HttpOverrideForwardedRequest
-
public class HttpOverrideForwardedRequest extends Action<HttpOverrideForwardedRequest>
- Author:
- jamesdbloom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type
-
-
Constructor Summary
Constructors Constructor Description HttpOverrideForwardedRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpOverrideForwardedRequest
forwardOverriddenRequest()
Static builder which will allow overriding proxied request with the specified request.static HttpOverrideForwardedRequest
forwardOverriddenRequest(HttpRequest httpRequest)
Static builder which will allow overriding proxied request with the specified request.static HttpOverrideForwardedRequest
forwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse)
Static builder which will allow overriding proxied request with the specified request.HttpRequest
getHttpRequest()
HttpResponse
getHttpResponse()
Action.Type
getType()
HttpOverrideForwardedRequest
withHttpRequest(HttpRequest httpRequest)
All fields, headers, cookies, etc of the provided request will be overriddenHttpOverrideForwardedRequest
withHttpResponse(HttpResponse httpResponse)
All fields, headers, cookies, etc of the provided response will be overridden-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Method Detail
-
forwardOverriddenRequest
public static HttpOverrideForwardedRequest forwardOverriddenRequest()
Static builder which will allow overriding proxied request with the specified request.
-
forwardOverriddenRequest
public static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest)
Static builder which will allow overriding proxied request with the specified request.- Parameters:
httpRequest
- the HttpRequest specifying what to override
-
forwardOverriddenRequest
public static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse)
Static builder which will allow overriding proxied request with the specified request.- Parameters:
httpRequest
- the HttpRequest specifying what to overridehttpResponse
- the HttpRequest specifying what to override
-
getHttpRequest
public HttpRequest getHttpRequest()
-
withHttpRequest
public HttpOverrideForwardedRequest withHttpRequest(HttpRequest httpRequest)
All fields, headers, cookies, etc of the provided request will be overridden- Parameters:
httpRequest
- the HttpRequest specifying what to override
-
getHttpResponse
public HttpResponse getHttpResponse()
-
withHttpResponse
public HttpOverrideForwardedRequest withHttpResponse(HttpResponse httpResponse)
All fields, headers, cookies, etc of the provided response will be overridden- Parameters:
httpResponse
- the HttpResponse specifying what to override
-
getType
public Action.Type getType()
- Specified by:
getType
in classAction<HttpOverrideForwardedRequest>
-
-