public class HostAddress extends Object
| Constructor and Description |
|---|
HostAddress(String fqdn)
Creates a new HostAddress with the given FQDN.
|
HostAddress(String fqdn,
int port)
Creates a new HostAddress with the given FQDN.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getErrorMessage() |
Exception |
getException()
Retrieve the Exception that caused a connection failure to this HostAddress.
|
String |
getFQDN() |
int |
getPort() |
int |
hashCode() |
void |
setException(Exception e) |
String |
toString() |
public HostAddress(String fqdn)
fqdn - Fully qualified domain name.IllegalArgumentException - If the fqdn is null.public HostAddress(String fqdn, int port)
fqdn - Fully qualified domain name.port - The port to connect on.IllegalArgumentException - If the fqdn is null or port is out of valid range (0 - 65535).public int getPort()
public void setException(Exception e)
public Exception getException()
SmackException.ConnectionException will have an Exception set,
which can be retrieved with this method.public String getErrorMessage()