public class HttpOverrideForwardedRequest extends Action<HttpOverrideForwardedRequest>
Action.Direction, Action.Type
Constructor and Description |
---|
HttpOverrideForwardedRequest() |
Modifier and Type | Method and 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 overridden
|
HttpOverrideForwardedRequest |
withHttpResponse(HttpResponse httpResponse)
All fields, headers, cookies, etc of the provided response will be overridden
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public static HttpOverrideForwardedRequest forwardOverriddenRequest()
public static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest)
httpRequest
- the HttpRequest specifying what to overridepublic static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse)
httpRequest
- the HttpRequest specifying what to overridehttpResponse
- the HttpRequest specifying what to overridepublic HttpRequest getHttpRequest()
public HttpOverrideForwardedRequest withHttpRequest(HttpRequest httpRequest)
httpRequest
- the HttpRequest specifying what to overridepublic HttpResponse getHttpResponse()
public HttpOverrideForwardedRequest withHttpResponse(HttpResponse httpResponse)
httpResponse
- the HttpResponse specifying what to overridepublic Action.Type getType()
getType
in class Action<HttpOverrideForwardedRequest>
Copyright © 2020. All rights reserved.