Smack

org.jivesoftware.smack.util.dns
Class HostAddress

java.lang.Object
  extended by org.jivesoftware.smack.util.dns.HostAddress
Direct Known Subclasses:
SRVRecord

public class HostAddress
extends Object


Constructor Summary
HostAddress(String fqdn)
          Creates a new HostAddress with the given FQDN.
HostAddress(String fqdn, int port)
          Creates a new HostAddress with the given FQDN.
 
Method Summary
 boolean equals(Object o)
           
 String getErrorMessage()
           
 String getFQDN()
           
 int getPort()
           
 int hashCode()
           
 void setException(Exception e)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostAddress

public HostAddress(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:
IllegalArgumentException - If the fqdn is null.

HostAddress

public HostAddress(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:
IllegalArgumentException - If the fqdn is null or port is out of valid range (0 - 65535).
Method Detail

getFQDN

public String getFQDN()

getPort

public int getPort()

setException

public void setException(Exception e)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getErrorMessage

public String getErrorMessage()

Smack

Copyright © 2003-2007 Jive Software.