Package org.mockserver.model
Class HttpForward
java.lang.Object
- Author:
- jamesdbloom
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpForwardforward()Static builder to create a forward.getHost()getPort()getType()inthashCode()The host or ip address to forward the request to i.e.The port to forward the request to i.e. 80.withScheme(HttpForward.Scheme scheme) The scheme to use when forwarded the request, either HTTP or HTTPS.Methods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimaryMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
HttpForward
public HttpForward()
-
-
Method Details
-
forward
Static builder to create a forward. -
getType
- Specified by:
getTypein classAction<HttpForward>
-
getHost
-
withHost
The host or ip address to forward the request to i.e. "www.mock-server.com"- Parameters:
host- a hostname or ip address as a string
-
getPort
-
withPort
The port to forward the request to i.e. 80. If not specified the port defaults to 80.- Parameters:
port- a port as an integer
-
getScheme
-
withScheme
The scheme to use when forwarded the request, either HTTP or HTTPS. If not specified the scheme defaults to HTTP.- Parameters:
scheme- the scheme as a HttpForward.Scheme value
-
equals
- Overrides:
equalsin classAction<HttpForward>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAction<HttpForward>
-