Package org.xbill.DNS

Class WKSRecord

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

public class WKSRecord extends Record
Well Known Services - Lists services offered by this host.
Author:
Brian Wellington
See Also:
  • Constructor Details

    • WKSRecord

      public WKSRecord(Name name, int dclass, long ttl, InetAddress address, int protocol, int[] services)
      Creates a WKS Record from the given data
      Parameters:
      address - The IP address
      protocol - The IP protocol number
      services - An array of supported services, represented by port number.
  • 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
    • getAddress

      public InetAddress getAddress()
      Returns the IP address.
    • getProtocol

      public int getProtocol()
      Returns the IP protocol.
    • getServices

      public int[] getServices()
      Returns the services provided by the host on the specified address.
    • 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