public class HttpForward extends Action
Modifier and Type | Class and Description |
---|---|
static class |
HttpForward.Scheme |
Action.Type
Constructor and Description |
---|
HttpForward() |
Modifier and Type | Method and Description |
---|---|
static HttpForward |
forward()
Static builder to create a callback.
|
Delay |
getDelay() |
String |
getHost() |
Integer |
getPort() |
HttpForward.Scheme |
getScheme() |
Action.Type |
getType() |
HttpForward |
withDelay(Delay delay)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpForward |
withDelay(TimeUnit timeUnit,
long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpForward |
withHost(String host)
The host or ip address to forward the request to i.e.
|
HttpForward |
withPort(Integer port)
The port to forward the request to i.e.
|
HttpForward |
withScheme(HttpForward.Scheme scheme)
The scheme to use when forwarded the request, either HTTP or HTTPS.
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
public static HttpForward forward()
public Action.Type getType()
public String getHost()
public HttpForward withHost(String host)
host
- a hostname or ip address as a stringpublic Integer getPort()
public HttpForward withPort(Integer port)
port
- a port as an integerpublic HttpForward.Scheme getScheme()
public HttpForward withScheme(HttpForward.Scheme scheme)
scheme
- the scheme as a HttpForward.Scheme valuepublic HttpForward withDelay(Delay delay)
delay
- a Delay object, for example new Delay(TimeUnit.SECONDS, 3)public HttpForward 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()
Copyright © 2018. All rights reserved.