Class InetSocketAddressParser
java.lang.Object
org.springframework.data.elasticsearch.client.InetSocketAddressParser
Utility to parse endpoints in
host:port format into InetSocketAddress.- Since:
- 3.2
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetSocketAddressParse a host and port string into aInetSocketAddress.
-
Constructor Details
-
InetSocketAddressParser
public InetSocketAddressParser()
-
-
Method Details
-
parse
Parse a host and port string into aInetSocketAddress.- Parameters:
hostPortString- Hostname/IP address and port formatted ashost:portorhost.defaultPort- default port to apply ifhostPostStringdoes not contain a port.- Returns:
- a
InetSocketAddressthat is unresolved to avoid DNS lookups. - See Also:
-