org.jivesoftware.smack.util.dns
Class HostAddress
java.lang.Object
org.jivesoftware.smack.util.dns.HostAddress
- Direct Known Subclasses:
- SRVRecord
public class HostAddress
- extends java.lang.Object
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HostAddress
public HostAddress(java.lang.String fqdn)
- Creates a new HostAddress with the given FQDN. The port will be set to the default XMPP client port: 5222
- Parameters:
fqdn
- Fully qualified domain name.
- Throws:
java.lang.IllegalArgumentException
- If the fqdn is null.
HostAddress
public HostAddress(java.lang.String fqdn,
int port)
- Creates a new HostAddress with the given FQDN. The port will be set to the default XMPP client port: 5222
- Parameters:
fqdn
- Fully qualified domain name.port
- The port to connect on.
- Throws:
java.lang.IllegalArgumentException
- If the fqdn is null or port is out of valid range (0 - 65535).
getFQDN
public java.lang.String getFQDN()
getPort
public int getPort()
setException
public void setException(java.lang.Exception e)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getErrorMessage
public java.lang.String getErrorMessage()
Copyright © 2003-2007 Jive Software.