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(HttpRequest httpRequest)
Static builder which will allow overriding proxied request with the specified request.HttpRequest
getHttpRequest()
Action.Type
getType()
HttpOverrideForwardedRequest
withHttpRequest(HttpRequest httpRequest)
All fields, headers, cookies, etc of the provided request will override-
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(HttpRequest httpRequest)
Static builder which will allow overriding proxied request with the specified request.- Parameters:
httpRequest
- 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 override- Parameters:
httpRequest
- the HttpRequest specifying what to override
-
getType
public Action.Type getType()
- Specified by:
getType
in classAction<HttpOverrideForwardedRequest>
-
-