public class HostAndPortWithScheme extends Object
Constructor and Description |
---|
HostAndPortWithScheme(String scheme,
com.google.common.net.HostAndPort hostAndPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static HostAndPortWithScheme |
fromParts(String scheme,
String host,
int port) |
static HostAndPortWithScheme |
fromString(String hostPortMaybeSchemeString) |
static HostAndPortWithScheme |
fromString(String scheme,
String hostPortString) |
com.google.common.net.HostAndPort |
getHostAndPort() |
String |
getHostText() |
int |
getPort() |
int |
getPortOrDefault(int defaultPort) |
String |
getScheme() |
int |
hashCode() |
String |
toString() |
public HostAndPortWithScheme(String scheme, com.google.common.net.HostAndPort hostAndPort)
public static HostAndPortWithScheme fromParts(String scheme, String host, int port)
public static HostAndPortWithScheme fromString(String hostPortMaybeSchemeString)
public static HostAndPortWithScheme fromString(String scheme, String hostPortString)
public String getScheme()
public String getHostText()
public int getPort()
public int getPortOrDefault(int defaultPort)
public com.google.common.net.HostAndPort getHostAndPort()
Copyright © 2011–2018. All rights reserved.