Class DnsOpCode

  • All Implemented Interfaces:
    java.lang.Comparable<DnsOpCode>

    public class DnsOpCode
    extends java.lang.Object
    implements java.lang.Comparable<DnsOpCode>
    The DNS OpCode as defined in RFC2929.
    • Field Detail

      • QUERY

        public static final DnsOpCode QUERY
        The 'Query' DNS OpCode, as defined in RFC1035.
      • IQUERY

        public static final DnsOpCode IQUERY
        The 'IQuery' DNS OpCode, as defined in RFC1035.
      • STATUS

        public static final DnsOpCode STATUS
        The 'Status' DNS OpCode, as defined in RFC1035.
      • NOTIFY

        public static final DnsOpCode NOTIFY
        The 'Notify' DNS OpCode, as defined in RFC1996.
      • UPDATE

        public static final DnsOpCode UPDATE
        The 'Update' DNS OpCode, as defined in RFC2136.
    • Constructor Detail

      • DnsOpCode

        public DnsOpCode​(int byteValue,
                         java.lang.String name)
    • Method Detail

      • valueOf

        public static DnsOpCode valueOf​(int b)
        Returns the DnsOpCode instance of the specified byte value.
      • byteValue

        public byte byteValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(DnsOpCode o)
        Specified by:
        compareTo in interface java.lang.Comparable<DnsOpCode>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object