public class HedwigSocketAddress extends Object
Constructor and Description |
---|
HedwigSocketAddress(String addr) |
HedwigSocketAddress(String hostname,
int port) |
HedwigSocketAddress(String hostname,
int port,
int sslPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHostname() |
int |
getPort() |
InetSocketAddress |
getSocketAddress() |
int |
getSSLPort() |
InetSocketAddress |
getSSLSocketAddress() |
int |
hashCode() |
boolean |
isSSLEnabled() |
static String |
sockAddrStr(InetSocketAddress addr) |
String |
toString() |
public static final String COLON
public HedwigSocketAddress(String hostname, int port, int sslPort)
public HedwigSocketAddress(String hostname, int port)
public HedwigSocketAddress(String addr)
public String getHostname()
public int getPort()
public int getSSLPort()
public InetSocketAddress getSocketAddress()
public InetSocketAddress getSSLSocketAddress()
public boolean isSSLEnabled()
public static String sockAddrStr(InetSocketAddress addr)
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.