Modifier and Type | Field and Description |
---|---|
private Name |
admin |
private long |
expire |
private Name |
host |
private long |
minimum |
private long |
refresh |
private long |
retry |
private long |
serial |
Constructor and Description |
---|
SOARecord() |
SOARecord(Name name,
int dclass,
long ttl,
Name host,
Name admin,
long serial,
long refresh,
long retry,
long expire,
long minimum)
Creates an SOA Record from the given data
|
Modifier and Type | Method and Description |
---|---|
Name |
getAdmin()
Returns the zone administrator's address
|
long |
getExpire()
Returns the time until a secondary expires a zone
|
Name |
getHost()
Returns the primary name server
|
long |
getMinimum()
Returns the minimum TTL for records in the zone
|
long |
getRefresh()
Returns the zone refresh interval
|
long |
getRetry()
Returns the zone retry interval
|
long |
getSerial()
Returns the zone's serial number
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Convert to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
private Name host
private Name admin
private long serial
private long refresh
private long retry
private long expire
private long minimum
SOARecord()
public SOARecord(Name name, int dclass, long ttl, Name host, Name admin, long serial, long refresh, long retry, long expire, long minimum)
host
- The primary name server for the zoneadmin
- The zone administrator's addressserial
- The zone's serial numberrefresh
- The amount of time until a secondary checks for a new serial numberretry
- The amount of time between a secondary's checks for a new serial numberexpire
- The amount of time until a secondary expires a zoneminimum
- The minimum TTL for records in the zoneprotected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
public Name getHost()
public Name getAdmin()
public long getSerial()
public long getRefresh()
public long getRetry()
public long getExpire()
public long getMinimum()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record