Package org.xbill.DNS
Class URIRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.URIRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Uniform Resource Identifier (URI) DNS Resource Record
- Author:
- Anthony Kirby
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the priorityReturns the target URIintReturns the weightprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts rdata to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.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, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
URIRecord
Creates a URI Record from the given data- Parameters:
priority- The priority of this URI. Records with lower priority are preferred.weight- The weight, used to select between records at the same priority.target- The host/port running the service
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getPriority
public int getPriority()Returns the priority -
getWeight
public int getWeight()Returns the weight -
getTarget
Returns the target URI -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-