org.apache.directory.server.dns.messages
Class ResponseCode
java.lang.Object
org.apache.directory.server.dns.messages.ResponseCode
- All Implemented Interfaces:
- java.lang.Comparable
public final class ResponseCode
- extends java.lang.Object
- implements java.lang.Comparable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
getMessage
public java.lang.String getMessage()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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()