public class SOA extends Data
| Modifier and Type | Field and Description |
|---|---|
int | expireA 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no
longer authoritative. |
long | minimumThe unsigned 32 bit minimum TTL field that should be exported with any RR from this zone. |
DnsName | mnameThe domain name of the name server that was the original or primary source of data for this zone. |
int | refreshA 32 bit time interval before the zone should be refreshed. |
int | retryA 32 bit time interval that should elapse before a failed refresh should be retried. |
DnsName | rnameA domain name which specifies the mailbox of the person responsible for this zone. |
long | serialThe unsigned 32 bit version number of the original copy of the zone. |
| Constructor and Description |
|---|
SOA(DnsName mname,
DnsName rname,
long serial,
int refresh,
int retry,
int expire,
long minimum)SOA. |
SOA(String mname,
String rname,
long serial,
int refresh,
int retry,
int expire,
long minimum)SOA. |
| Modifier and Type | Method and Description |
|---|---|
Record.TYPE | getType()getType. |
static SOA | parse(DataInputStream dis,
byte[] data)parse. |
void | serialize(DataOutputStream dos)serialize. |
String | toString()toString. |
equals, hashCode, length, toByteArray, toOutputStream, toOutputStreampublic final int expire
public final long minimum
public final DnsName mname
public final int refresh
public final int retry
public final DnsName rname
public final long serial
public SOA(DnsName mname, DnsName rname, long serial, int refresh, int retry, int expire, long minimum)
public Record.TYPE getType()
public static SOA parse(DataInputStream dis, byte[] data) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
serialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.