|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.antiaction.dns.record.DNSRDataSOA
DNS SOA Record container. As defined in rfc1035.
Field Summary | |
protected int |
expire
A 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative. |
protected int |
minimum
The unsigned 32 bit minimum TTL field that should be exported with any RR from this zone. |
protected java.lang.String |
mname
Name server that was the original or primary source of data for this zone. |
protected int |
refresh
A 32 bit time interval before the zone should be refreshed. |
protected int |
retry
A 32 bit time interval that should elapse before a failed refresh should be retried. |
protected java.lang.String |
rname
Mailbox of the person responsible for this zone. |
protected static int |
rtype
Record of type SOA. |
protected int |
serial
The unsigned 32 bit version number of the original copy of the zone. |
Constructor Summary | |
DNSRDataSOA()
Instantiate and initialize a default SOA 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. |
int |
getExpire()
Get the 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative. |
int |
getMinimum()
Get the unsigned 32 bit minimum TTL field that should be exported with any RR from this zone. |
java.lang.String |
getMName()
Get the Name server that was the original or primary source of data for this zone. |
int |
getRefresh()
Get the 32 bit time interval before the zone should be refreshed. |
int |
getRetry()
Get the 32 bit time interval that should elapse before a failed refresh should be retried. |
java.lang.String |
getRName()
Get the mailbox of the person responsible for this zone. |
int |
getRType()
Get the record type. |
int |
getSerial()
Get the unsigned 32 bit version number of the original copy of the zone. |
void |
setDebug(boolean b)
Toggle debug status. |
void |
setExpire(int e)
Set the 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative. |
void |
setMinimum(int ttl)
Set the unsigned 32 bit minimum TTL field that should be exported with any RR from this zone. |
void |
setMName(java.lang.String mn)
Set the Name server that was the original or primary source of data for this zone. |
void |
setRefresh(int r)
Set the 32 bit time interval before the zone should be refreshed. |
void |
setRetry(int r)
Set the 32 bit time interval that should elapse before a failed refresh should be retried. |
void |
setRName(java.lang.String rn)
Set the mailbox of the person responsible for this zone. |
void |
setSerial(int s)
Set the unsigned 32 bit version number of the original copy of the zone. |
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 mname
protected java.lang.String rname
protected int serial
protected int refresh
protected int retry
protected int expire
protected int minimum
Constructor Detail |
public DNSRDataSOA()
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 setMName(java.lang.String mn)
mn
- nameserver.public java.lang.String getMName()
public void setRName(java.lang.String rn)
rn
- mailbox.public java.lang.String getRName()
public void setSerial(int s)
s
- serial number.public int getSerial()
public void setRefresh(int r)
r
- time interval.public int getRefresh()
public void setRetry(int r)
r
- time interval.public int getRetry()
public void setExpire(int e)
e
- time interval.public int getExpire()
public void setMinimum(int ttl)
ttl
- Time To Live.public int getMinimum()
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 |