public class HttpForward extends Action<HttpForward>
Modifier and Type | Class and Description |
---|---|
static class |
HttpForward.Scheme |
Action.Direction, Action.Type
Constructor and Description |
---|
HttpForward() |
Modifier and Type | Method and Description |
---|---|
static HttpForward |
forward()
Static builder to create a forward.
|
String |
getHost() |
Integer |
getPort() |
HttpForward.Scheme |
getScheme() |
Action.Type |
getType() |
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
public static HttpForward forward()
public Action.Type getType()
getType
in class Action<HttpForward>
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 valueCopyright © 2020. All rights reserved.