/*
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.util;

/**
 * This class describes an DNS'S SRV record.
 *
 * @author Sebastien Vincent
 */
public class SRVRecord
{
    /**
     * DNSJava SRVRecord.
     */
    private org.xbill.DNS.SRVRecord record;

    /**
     * Constructor.
     *
     * @param record DNSJava SRVRecord
     */
    public SRVRecord(org.xbill.DNS.SRVRecord record)
    {
        this.record = record;
    }

    /**
     * Get port.
     *
     * @return port
     */
    public int getPort()
    {
        return record.getPort();
    }

    /**
     * Get target.
     *
     * @return target
     */
    public String getTarget()
    {
        return record.getTarget().toString();
    }

    /**
     * Get priority.
     *
     * @return priority
     */

    public int getPriority()
    {
        return record.getPriority();
    }

    /**
     * Get weight.
     *
     * @return weight
     */
    public int getWeight()
    {
        return record.getWeight();
    }

    /**
     * Get DNS TTL.
     *
     * @return DNS TTL
     */

    public long getTTL()
    {
        return record.getTTL();
    }

    /**
     * Get domain name.
     *
     * @return domain name
     */
    public String getName()
    {
        return record.getName().toString();
    }

    @Override
    public String toString()
    {
        return record.toString();
    }
}

@@ -901,33 +901,32 @@
 riority%0A     */%0A
-%0A
     public int g
@@ -1193,17 +1193,16 @@
      */%0A
-%0A
     publ
@@ -1418,24 +1418,260 @@
 g();%0A    %7D%0A%0A
+    /**%0A     * Returns the toString of the org.xbill.DNS.SRVRecord that was passed to%0A     * the constructor.%0A     * %0A     * @return the toString of the org.xbill.DNS.SRVRecord that was passed to%0A     *         the constructor.%0A     */%0A
     @Overrid

Add javadoc