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