org.xbill.DNS
Class MX_KXRecord

java.lang.Object
  extended byorg.xbill.DNS.Record
      extended byorg.xbill.DNS.MX_KXRecord
All Implemented Interfaces:
Cloneable, Comparable
Direct Known Subclasses:
KXRecord, MXRecord

public abstract class MX_KXRecord
extends Record

Implements MX and KX records, which have identical formats

Author:
Brian Wellington

Field Summary
protected  int priority
           
protected  Name target
           
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
protected MX_KXRecord()
           
protected MX_KXRecord(Name name, int type, int dclass, int ttl)
           
  MX_KXRecord(Name name, int type, int dclass, int ttl, int priority, Name target)
           
 
Method Summary
 Name getAdditionalName()
          Returns the name for which additional data processing should be done for this record.
 int getPriority()
          Returns the priority of this record
 Name getTarget()
          Returns the target of the record
protected static Record rdataFromString(MX_KXRecord rec, Tokenizer st, Name origin)
           
 String rdataToString()
          Converts rdata to a String
protected static Record rrFromWire(MX_KXRecord rec, DataByteInputStream in)
           
 
Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToWireCanonical, remainingStrings, toString, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

priority

protected int priority

target

protected Name target
Constructor Detail

MX_KXRecord

protected MX_KXRecord()

MX_KXRecord

protected MX_KXRecord(Name name,
                      int type,
                      int dclass,
                      int ttl)

MX_KXRecord

public MX_KXRecord(Name name,
                   int type,
                   int dclass,
                   int ttl,
                   int priority,
                   Name target)
Method Detail

rrFromWire

protected static Record rrFromWire(MX_KXRecord rec,
                                   DataByteInputStream in)
                            throws IOException
Throws:
IOException

rdataFromString

protected static Record rdataFromString(MX_KXRecord rec,
                                        Tokenizer st,
                                        Name origin)
                                 throws IOException
Throws:
IOException

rdataToString

public String rdataToString()
Converts rdata to a String

Specified by:
rdataToString in class Record

getTarget

public Name getTarget()
Returns the target of the record


getPriority

public int getPriority()
Returns the priority of this record


getAdditionalName

public Name getAdditionalName()
Description copied from class: Record
Returns the name for which additional data processing should be done for this record. This can be used both for building responses and parsing responses.

Overrides:
getAdditionalName in class Record
Returns:
The name to used for additional data processing, or null if this record type does not require additional data processing.