Package io.netty.handler.codec.dns
Class DnsOpCode
- java.lang.Object
-
- io.netty.handler.codec.dns.DnsOpCode
-
-
Field Summary
Fields Modifier and Type Field Description static DnsOpCode
IQUERY
The 'IQuery' DNS OpCode, as defined in RFC1035.static DnsOpCode
NOTIFY
The 'Notify' DNS OpCode, as defined in RFC1996.static DnsOpCode
QUERY
The 'Query' DNS OpCode, as defined in RFC1035.static DnsOpCode
STATUS
The 'Status' DNS OpCode, as defined in RFC1035.static DnsOpCode
UPDATE
The 'Update' DNS OpCode, as defined in RFC2136.
-
Constructor Summary
Constructors Constructor Description DnsOpCode(int byteValue, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(DnsOpCode o)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
static DnsOpCode
valueOf(int b)
Returns theDnsOpCode
instance of the specified byte value.
-
-
-
Method Detail
-
valueOf
public static DnsOpCode valueOf(int b)
Returns theDnsOpCode
instance of the specified byte value.
-
byteValue
public byte byteValue()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(DnsOpCode o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DnsOpCode>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-