public static enum Dns.OpCode extends Enum<Dns.OpCode> implements ProtocolEnum
Enum Constant and Description |
---|
INV_QUERY
Inverse query (Obsolete).
|
NOTIFY
Notify slave servers that data in the master has changed.
|
QUERY
Standard query.
|
STATUS
Server status request.
|
UPDATE
Dynamic update.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static Dns.OpCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dns.OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dns.OpCode QUERY
public static final Dns.OpCode INV_QUERY
public static final Dns.OpCode STATUS
public static final Dns.OpCode NOTIFY
public static final Dns.OpCode UPDATE
public static Dns.OpCode[] values()
for (Dns.OpCode c : Dns.OpCode.values()) System.out.println(c);
public static Dns.OpCode 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 int code()
ProtocolEnum
code
in interface ProtocolEnum
Copyright © 2015. All Rights Reserved.