org.apache.directory.server.dns.messages
Class ResponseCode

java.lang.Object
  extended byorg.apache.directory.server.dns.messages.ResponseCode
All Implemented Interfaces:
java.lang.Comparable

public final class ResponseCode
extends java.lang.Object
implements java.lang.Comparable


Field Summary
static ResponseCode FORMAT_ERROR
           
static ResponseCode NAME_ERROR
           
static ResponseCode NO_ERROR
          Enumeration elements are constructed once upon class loading.
static ResponseCode NOT_IMPLEMENTED
           
static ResponseCode REFUSED
           
static ResponseCode SERVER_FAILURE
           
static java.util.List VALUES
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 java.lang.String getMessage()
           
 int getOrdinal()
           
static ResponseCode getTypeByOrdinal(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ERROR

public static final ResponseCode NO_ERROR
Enumeration elements are constructed once upon class loading. Order of appearance here determines the order of compareTo.


FORMAT_ERROR

public static final ResponseCode FORMAT_ERROR

SERVER_FAILURE

public static final ResponseCode SERVER_FAILURE

NAME_ERROR

public static final ResponseCode NAME_ERROR

NOT_IMPLEMENTED

public static final ResponseCode NOT_IMPLEMENTED

REFUSED

public static final ResponseCode REFUSED

VALUES

public static final java.util.List VALUES
Method Detail

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()

compareTo

public int compareTo(java.lang.Object that)
Specified by:
compareTo in interface java.lang.Comparable

getTypeByOrdinal

public static ResponseCode getTypeByOrdinal(int type)

getOrdinal

public int getOrdinal()