com.antiaction.dns
Class DNSResponseCode

java.lang.Object
  |
  +--com.antiaction.dns.DNSResponseCode

public class DNSResponseCode
extends java.lang.Object

DNS Response Code, defines various response constants. As defined in rfc1035.

Version:
2.00
Author:
Nicholas Clarke

Field Summary
static int FORMATERROR
          Format error - The name server was unable to interpret the query.
static int NAMEERROR
          Name error - Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.
static int NOERROR
          No error condiction.
static int NOTIMPLEMENTED
          Not implemented - The name server does not support the requested kind of query.
static int REFUSED
          Refused - The name server refuses to perform the specified operation for a policy reason.
static int SERVERFAILURE
          Server failure - The name server was unable to process this query due to a problem with the name server.
 
Method Summary
static java.lang.String toString(int i)
          Given a response code returns a string representation.
static boolean validResponseCode(int i)
          Given a response code returns a boolean indicating validity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOERROR

public static final int NOERROR
No error condiction.

FORMATERROR

public static final int FORMATERROR
Format error - The name server was unable to interpret the query.

SERVERFAILURE

public static final int SERVERFAILURE
Server failure - The name server was unable to process this query due to a problem with the name server.

NAMEERROR

public static final int NAMEERROR
Name error - Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.

NOTIMPLEMENTED

public static final int NOTIMPLEMENTED
Not implemented - The name server does not support the requested kind of query.

REFUSED

public static final int REFUSED
Refused - The name server refuses to perform the specified operation for a policy reason. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (eg., zone transfer) for particular data.
Method Detail

validResponseCode

public static boolean validResponseCode(int i)
Given a response code returns a boolean indicating validity.
Parameters:
i - response code.
Returns:
response code validity.
See Also:
toString(int)

toString

public static java.lang.String toString(int i)
Given a response code returns a string representation.
Parameters:
i - response code.
Returns:
response code string.
See Also:
validResponseCode(int)