public class HttpOverrideForwardedRequest extends Action
Action.Type
Constructor and Description |
---|
HttpOverrideForwardedRequest() |
Modifier and Type | Method and Description |
---|---|
static HttpOverrideForwardedRequest |
forwardOverriddenRequest(HttpRequest httpRequest)
Static builder which will allow overriding proxied request with the specified request.
|
Delay |
getDelay() |
HttpRequest |
getHttpRequest() |
Action.Type |
getType() |
HttpOverrideForwardedRequest |
withDelay(Delay delay)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpOverrideForwardedRequest |
withDelay(TimeUnit timeUnit,
long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpOverrideForwardedRequest |
withHttpRequest(HttpRequest httpRequest)
All fields, headers, cookies, etc of the provided request will override
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
public static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest)
httpRequest
- the HttpRequest specifying what to overridepublic HttpRequest getHttpRequest()
public HttpOverrideForwardedRequest withHttpRequest(HttpRequest httpRequest)
httpRequest
- the HttpRequest specifying what to overridepublic HttpOverrideForwardedRequest withDelay(Delay delay)
delay
- a Delay object, for example new Delay(TimeUnit.SECONDS, 3)public HttpOverrideForwardedRequest withDelay(TimeUnit timeUnit, long value)
timeUnit
- a the time unit, for example TimeUnit.SECONDSvalue
- a the number of time units to delay the responsepublic Delay getDelay()
public Action.Type getType()
Copyright © 2018. All rights reserved.