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 |
|---|---|
boolean |
equals(Object o) |
static HttpForward |
forward()
Static builder to create a forward.
|
String |
getHost() |
Integer |
getPort() |
HttpForward.Scheme |
getScheme() |
Action.Type |
getType() |
int |
hashCode() |
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.
|
getDelay, getExpectationId, setExpectationId, withDelay, withDelaytoStringfieldsExcludedFromEqualsAndHashCodepublic 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 valuepublic boolean equals(Object o)
equals in class Action<HttpForward>public int hashCode()
hashCode in class Action<HttpForward>Copyright © 2022. All rights reserved.