com.antiaction.dns
Class DNSQType

java.lang.Object
  |
  +--com.antiaction.dns.DNSType
        |
        +--com.antiaction.dns.DNSQType

public class DNSQType
extends DNSType

DNS QType constants, defines the various qtype constants. As defined in rfc1035.

Version:
2.00
Author:
Nicholas Clarke

Field Summary
static int ALL
          Request ALL records.
static int AXFR
          Transfer for an entire zone.
static int MAILA
          MailAgent, obsolete, use MX instead.
static int MAILB
          Mailbox related records (MB, MG or MR).
 
Fields inherited from class com.antiaction.dns.DNSType
A, CNAME, GENERIC, HINFO, MB, MD, MF, MG, MINFO, MR, MX, NS, NULL, PTR, SOA, TXT, WKS
 
Constructor Summary
protected DNSQType()
          Only the static methods are meant for public use.
 
Method Summary
static java.lang.String toString(int i)
          Given a record type returns a string representation.
static boolean validQType(int i)
          Given a record type returns a boolean indicating validity.
 
Methods inherited from class com.antiaction.dns.DNSType
validType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AXFR

public static final int AXFR
Transfer for an entire zone.

MAILB

public static final int MAILB
Mailbox related records (MB, MG or MR).

MAILA

public static final int MAILA
MailAgent, obsolete, use MX instead.

ALL

public static final int ALL
Request ALL records.
Constructor Detail

DNSQType

protected DNSQType()
Only the static methods are meant for public use.
Method Detail

validQType

public static boolean validQType(int i)
Given a record type returns a boolean indicating validity.
Parameters:
i - record type.
Returns:
record type validity.
See Also:
toString(int)

toString

public static java.lang.String toString(int i)
Given a record type returns a string representation.
Parameters:
i - record type.
Returns:
record type string.
See Also:
validQType(int)