org.xbill.DNS
Class RTRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.RTRecord
- All Implemented Interfaces:
- Cloneable, Comparable
public class RTRecord
- extends Record
Route Through Record - lists a route preference and intermediate host.
- Author:
- Brian Wellington
Constructor Summary |
RTRecord(Name name,
int dclass,
long ttl,
int preference,
Name intermediateHost)
Creates an RT Record from the given data |
Methods inherited from class org.xbill.DNS.Record |
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
u16Field
protected int u16Field
nameField
protected Name nameField
RTRecord
public RTRecord(Name name,
int dclass,
long ttl,
int preference,
Name intermediateHost)
- Creates an RT Record from the given data
- Parameters:
preference
- The preference of the route. Smaller numbers indicate
more preferred routes.intermediateHost
- The domain name of the host to use as a router.
getPreference
public int getPreference()
- Gets the preference of the route.
getIntermediateHost
public Name getIntermediateHost()
- Gets the host to use as a router.
getU16Field
protected int getU16Field()
getNameField
protected Name getNameField()