public class HttpForward extends Action
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpForward.Scheme |
Action.Typelogger| Constructor and Description |
|---|
HttpForward() |
| Modifier and Type | Method and Description |
|---|---|
static HttpForward |
forward()
Static builder to create a callback.
|
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.
|
toStringaddFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCodepublic 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 valueCopyright © 2018. All rights reserved.