パッケージ org.pcap4j.packet

クラス DnsRDataMx

  • すべての実装されたインタフェース:
    Serializable, DnsResourceRecord.DnsRData

    public final class DnsRDataMx
    extends Object
    implements DnsResourceRecord.DnsRData
    DNS MX RDATA
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
     |                  PREFERENCE                   |
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
     /                   EXCHANGE                    /
     /                                               /
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    
     where:
    
     PREFERENCE      A 16 bit integer which specifies the preference given to
                     this RR among others at the same owner.  Lower values
                     are preferred.
    
     EXCHANGE        A <domain-name> which specifies a host willing to act as
                     a mail exchange for the owner name.
     
    導入されたバージョン:
    pcap4j 1.7.1
    作成者:
    Kaito Yamada
    関連項目:
    RFC 1035, 直列化された形式
    • メソッドの詳細

      • getPreference

        public short getPreference()
        戻り値:
        preference
      • getPreferenceAsInt

        public int getPreferenceAsInt()
        戻り値:
        preference
      • getExchange

        public DnsDomainName getExchange()
        戻り値:
        exchange
      • getBuilder

        public DnsRDataMx.Builder getBuilder()
        戻り値:
        a new Builder object populated with this object's fields.
      • toString

        public String toString​(String indent,
                               byte[] headerRawData)
        定義:
        toString インタフェース内 DnsResourceRecord.DnsRData
        パラメータ:
        indent - indent
        headerRawData - the raw data of the DNS header including this RDATA.
        戻り値:
        String representation of this object.
      • hashCode

        public int hashCode()
        オーバーライド:
        hashCode クラス内 Object
      • equals

        public boolean equals​(Object obj)
        オーバーライド:
        equals クラス内 Object