Package org.apache.druid.server.http
Class HostAndPortWithScheme
- java.lang.Object
-
- org.apache.druid.server.http.HostAndPortWithScheme
-
public class HostAndPortWithScheme extends Object
-
-
Constructor Summary
Constructors Constructor Description HostAndPortWithScheme(String scheme, com.google.common.net.HostAndPort hostAndPort)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static HostAndPortWithSchemefromParts(String scheme, String host, int port)static HostAndPortWithSchemefromString(String hostPortMaybeSchemeString)static HostAndPortWithSchemefromString(String scheme, String hostPortString)com.google.common.net.HostAndPortgetHostAndPort()StringgetHostText()intgetPort()intgetPortOrDefault(int defaultPort)StringgetScheme()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
HostAndPortWithScheme
public HostAndPortWithScheme(String scheme, com.google.common.net.HostAndPort hostAndPort)
-
-
Method Detail
-
fromParts
public static HostAndPortWithScheme fromParts(String scheme, String host, int port)
-
fromString
public static HostAndPortWithScheme fromString(String hostPortMaybeSchemeString)
-
fromString
public static HostAndPortWithScheme fromString(String scheme, String hostPortString)
-
getScheme
public String getScheme()
-
getHostText
public String getHostText()
-
getPort
public int getPort()
-
getPortOrDefault
public int getPortOrDefault(int defaultPort)
-
getHostAndPort
public com.google.common.net.HostAndPort getHostAndPort()
-
-