- java.lang.Object
-
- org.pcap4j.packet.DnsRDataMInfo
-
- All Implemented Interfaces:
java.io.Serializable,DnsResourceRecord.DnsRData
public final class DnsRDataMInfo extends java.lang.Object implements DnsResourceRecord.DnsRData
DNS MINFO RDATA+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / RMAILBX / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / EMAILBX / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: RMAILBX A <domain-name> which specifies a mailbox which is responsible for the mailing list or mailbox. If this domain name names the root, the owner of the MINFO RR is responsible for itself. Note that many existing mailing lists use a mailbox X-request for the RMAILBX field of mailing list X, e.g., Msgroup-request for Msgroup. This field provides a more general mechanism. EMAILBX A <domain-name> which specifies a mailbox which is to receive error messages related to the mailing list or mailbox specified by the owner of the MINFO RR (similar to the ERRORS-TO: field which has been proposed). If this domain name names the root, errors should be returned to the sender of the message.- Since:
- pcap4j 1.7.1
- See Also:
- RFC 1035, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDnsRDataMInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private DnsDomainNameeMailBxprivate DnsDomainNamerMailBxprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateDnsRDataMInfo(byte[] rawData, int offset, int length)privateDnsRDataMInfo(DnsRDataMInfo.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringconvertToString(java.lang.String indent, byte[] headerRawData)booleanequals(java.lang.Object obj)DnsRDataMInfo.BuildergetBuilder()DnsDomainNamegetEMailBx()byte[]getRawData()DnsDomainNamegetRMailBx()inthashCode()intlength()static DnsRDataMInfonewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)java.lang.StringtoString(java.lang.String indent, byte[] headerRawData)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
rMailBx
private final DnsDomainName rMailBx
-
eMailBx
private final DnsDomainName eMailBx
-
-
Constructor Detail
-
DnsRDataMInfo
private DnsRDataMInfo(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
DnsRDataMInfo
private DnsRDataMInfo(DnsRDataMInfo.Builder builder)
-
-
Method Detail
-
newInstance
public static DnsRDataMInfo newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new DnsRDataMInfo object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getRMailBx
public DnsDomainName getRMailBx()
- Returns:
- rMailBx
-
getEMailBx
public DnsDomainName getEMailBx()
- Returns:
- eMailBx
-
length
public int length()
- Specified by:
lengthin interfaceDnsResourceRecord.DnsRData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceDnsResourceRecord.DnsRData- Returns:
- raw data
-
getBuilder
public DnsRDataMInfo.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
toStringin interfaceDnsResourceRecord.DnsRData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
toString
public java.lang.String toString(java.lang.String indent, byte[] headerRawData)- Specified by:
toStringin interfaceDnsResourceRecord.DnsRData- Parameters:
indent- indentheaderRawData- the raw data of the DNS header including this RDATA.- Returns:
- String representation of this object.
-
convertToString
private java.lang.String convertToString(java.lang.String indent, byte[] headerRawData)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-