public class HostAndPort extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
localhost
Deprecated.
This variable will be removed in next major release.
|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
HostAndPort(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
static String |
convertHost(String host)
Deprecated.
This method will be removed in next major release.
|
boolean |
equals(Object obj) |
static String[] |
extractParts(String from)
Deprecated.
This method will be removed in next major release.
|
static HostAndPort |
from(String string)
Creates HostAndPort with unconverted host.
|
String |
getHost() |
static String |
getLocalhost()
Deprecated.
This method will be removed in next major release.
|
static String |
getLocalHostQuietly()
Deprecated.
This method will be removed in next major release.
|
int |
getPort() |
int |
hashCode() |
static HostAndPort |
parseString(String from)
Deprecated.
This method will be removed in next major release.
|
static void |
setLocalhost(String localhost)
Deprecated.
This method will be removed in next major release.
|
String |
toString() |
protected static org.slf4j.Logger log
@Deprecated public static volatile String localhost
public HostAndPort(String host, int port)
public String getHost()
public int getPort()
public static HostAndPort from(String string)
string
- String to parse. Must be in "host:port" format. Port is mandatory.@Deprecated public static String[] extractParts(String from)
from
- String to parse@Deprecated public static HostAndPort parseString(String from)
from
- String to parseconvertHost(String)
@Deprecated public static String convertHost(String host)
@Deprecated public static void setLocalhost(String localhost)
@Deprecated public static String getLocalhost()
@Deprecated public static String getLocalHostQuietly()
Copyright © 2021. All rights reserved.