|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.antiaction.dns.record.DNSRDataMINFO
DNS MINFO Record container. As defined in rfc1035.
Field Summary | |
protected java.lang.String |
eMailBX
Error mailbox. |
protected java.lang.String |
rMailBX
Responsible mailbox. |
protected static int |
rtype
Record of type MINFO. |
Constructor Summary | |
DNSRDataMINFO()
Instantiate and initialize a default MINFO record object. |
Method Summary | |
byte[] |
buildPacket(DNSName dnsname,
int globalIdx)
Build and return the rdata packet on the internal state. |
java.lang.Object |
clone()
Overrides Cloneable. |
void |
disassemblePacket(DNSName dnsname,
byte[] pDat,
int pIdx,
int pLen)
Parses the rdata part of a record. |
int |
getDisassembledLen()
Returns the length of the previously disassembled rdata part. |
java.lang.String |
getErrorMX()
Get the error mailbox. |
java.lang.String |
getResponsibleMX()
Get the responsible mailbox. |
int |
getRType()
Get the record type. |
void |
setDebug(boolean b)
Toggle debug status. |
void |
setErrorMX(java.lang.String mbx)
Set the error mailbox. |
void |
setResponsibleMX(java.lang.String mbx)
Set the responsible mailbox. |
java.lang.String |
toString()
Returns a string representation of the internal state, mostly for debugging purposes. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static int rtype
protected java.lang.String rMailBX
protected java.lang.String eMailBX
Constructor Detail |
public DNSRDataMINFO()
Method Detail |
public java.lang.Object clone()
clone
in interface DNSRDataInterface
clone
in class java.lang.Object
OutOfMemoryError
- if there is not enough memory.Cloneable
public void setDebug(boolean b)
setDebug
in interface DNSRDataInterface
b
- boolean.public byte[] buildPacket(DNSName dnsname, int globalIdx) throws DNSNameException
buildPacket
in interface DNSRDataInterface
dnsname
- used for domain name compression in the same message.globalIdx
- current index of the message being assembled. (Domain name compression)DNSNameException
- if the domain name is invalid.public int getDisassembledLen()
getDisassembledLen
in interface DNSRDataInterface
disassemblePacket(DNSName, byte[], int, int)
public void disassemblePacket(DNSName dnsname, byte[] pDat, int pIdx, int pLen) throws DNSNameException, DNSRDataException
disassemblePacket
in interface DNSRDataInterface
dnsname
- used for domain name compression in the same message.pDat
- array containing the complete packet.pIdx
- index to where in the array the rdata part begins.pLen
- length of the whole packet.DNSRDataException
- if the packet is corrupted.DNSNameException
- if the domain name is invalid.getDisassembledLen()
public int getRType()
getRType
in interface DNSRDataInterface
public void setResponsibleMX(java.lang.String mbx)
mbx
- domainname.public java.lang.String getResponsibleMX()
public void setErrorMX(java.lang.String mbx)
mbx
- domainname.public java.lang.String getErrorMX()
public java.lang.String toString()
toString
in interface DNSRDataInterface
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |