Package org.mockserver.model
Class SocketAddress
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.SocketAddress
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getPort()static SocketAddressStatic builder to create a socketAddress.The host or ip address to use when connecting to the socket to i.e.The port to use when connecting to the socket i.e. 80.withScheme(SocketAddress.Scheme scheme) The scheme to use when connecting to the socket, either HTTP or HTTPS.Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
SocketAddress
public SocketAddress()
-
-
Method Details
-
socketAddress
Static builder to create a socketAddress. -
getHost
-
withHost
The host or ip address to use when connecting to the socket to i.e. "www.mock-server.com"- Parameters:
host- a hostname or ip address as a string
-
getPort
-
withPort
The port to use when connecting to the socket 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 connecting to the socket, either HTTP or HTTPS. If not specified the scheme defaults to HTTP.- Parameters:
scheme- the scheme as a SocketAddress.Scheme value
-