public enum ResponseCode extends Enum<ResponseCode> implements EnumConverter<Byte>
| Enum Constant and Description |
|---|
FORMAT_ERROR
The name server was unable to interpret the query.
|
NAME_ERROR
The domain name referenced in the query does not exist.
|
NO_ERROR
No error condition.
|
NOT_IMPLEMENTED
The name server does not support the requested kind of query.
|
REFUSED
The name server refuses to perform the specified operation for policy reasons.
|
SERVER_FAILURE
The name server was unable to process this query due to a problem with the name server.
|
| Modifier and Type | Method and Description |
|---|---|
Byte |
convert()
Convert the enum to another type.
|
static ResponseCode |
convert(byte value)
Converts an ordinal value into a
ResponseCode. |
static ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode NO_ERROR
public static final ResponseCode FORMAT_ERROR
public static final ResponseCode SERVER_FAILURE
public static final ResponseCode NAME_ERROR
public static final ResponseCode NOT_IMPLEMENTED
public static final ResponseCode REFUSED
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Byte convert()
EnumConverterconvert in interface EnumConverter<Byte>public static ResponseCode convert(byte value)
ResponseCode.value - ResponseCode.Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.