Package org.xbill.DNS

Class URIRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.URIRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class URIRecord extends Record
Uniform Resource Identifier (URI) DNS Resource Record
Author:
Anthony Kirby
See Also:
  • Constructor Details

    • URIRecord

      public URIRecord(Name name, int dclass, long ttl, int priority, int weight, String target)
      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

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Converts rdata to a String
      Specified by:
      rrToString in class Record
    • getPriority

      public int getPriority()
      Returns the priority
    • getWeight

      public int getWeight()
      Returns the weight
    • getTarget

      public String getTarget()
      Returns the target URI
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record