Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util
Class SRVRecord

java.lang.Object
  extended by net.java.sip.communicator.util.SRVRecord

public class SRVRecord
extends Object

This class describes an DNS'S SRV record.

Author:
Sebastien Vincent

Constructor Summary
SRVRecord(org.xbill.DNS.SRVRecord record)
          Constructor.
 
Method Summary
 String getName()
          Get domain name.
 int getPort()
          Get port.
 int getPriority()
          Get priority.
 String getTarget()
          Get target.
 long getTTL()
          Get DNS TTL.
 int getWeight()
          Get weight.
 String toString()
          Returns the toString of the org.xbill.DNS.SRVRecord that was passed to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SRVRecord

public SRVRecord(org.xbill.DNS.SRVRecord record)
Constructor.

Parameters:
record - DNSJava SRVRecord
Method Detail

getPort

public int getPort()
Get port.

Returns:
port

getTarget

public String getTarget()
Get target.

Returns:
target

getPriority

public int getPriority()
Get priority.

Returns:
priority

getWeight

public int getWeight()
Get weight.

Returns:
weight

getTTL

public long getTTL()
Get DNS TTL.

Returns:
DNS TTL

getName

public String getName()
Get domain name.

Returns:
domain name

toString

public String toString()
Returns the toString of the org.xbill.DNS.SRVRecord that was passed to the constructor.

Overrides:
toString in class Object
Returns:
the toString of the org.xbill.DNS.SRVRecord that was passed to the constructor.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.