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 DnsOpCodeIQUERYThe 'IQuery' DNS OpCode, as defined in RFC1035.static DnsOpCodeNOTIFYThe 'Notify' DNS OpCode, as defined in RFC1996.static DnsOpCodeQUERYThe 'Query' DNS OpCode, as defined in RFC1035.static DnsOpCodeSTATUSThe 'Status' DNS OpCode, as defined in RFC1035.static DnsOpCodeUPDATEThe '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 bytebyteValue()intcompareTo(DnsOpCode o)booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()static DnsOpCodevalueOf(int b)Returns theDnsOpCodeinstance of the specified byte value.
-
-
-
Method Detail
-
valueOf
public static DnsOpCode valueOf(int b)
Returns theDnsOpCodeinstance of the specified byte value.
-
byteValue
public byte byteValue()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(DnsOpCode o)
- Specified by:
compareToin interfacejava.lang.Comparable<DnsOpCode>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-