|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDNS.RRGroup
Class that holds a group of Resource Records. Note that this 'Group' is not a 'Set', as definted by DNS. In general, for standard DNS, each RRGroup will only have one element (except for SOA records): an A or NS record. But, DNSSEC will add SIG and NXT records to each group.
| Field Summary | |
long |
expires
When this RRGroup expires. |
java.lang.String |
name
The name of this RRGroup, the same as the name in its A and NS RRs |
java.util.LinkedList |
records
Ordered list of RRs |
| Constructor Summary | |
RRGroup(java.lang.String name)
Standard constructor for an RRGroup, specifies the name, initializes data structures, sets expires to be infinite. |
|
| Method Summary | |
void |
add(ResourceRecord rr)
|
void |
adjustSIGRecords()
|
RRGroup |
cache()
Basically a clone operator, copies the RRGroup so it can be sent. |
RRGroup |
cache(int time)
Basically a clone operator, copies the RRGroup so it can be sent. |
boolean |
equals(java.lang.Object o)
|
ResourceRecord |
getRecord(java.lang.String type)
Get a record with a certain type (should not be used for SIG records). |
ResourceRecord |
getRecord(java.lang.String type,
java.lang.String name)
Get a record with a certain type and name (?!). |
java.util.ArrayList |
getTypes()
|
int |
hashCode()
|
boolean |
hasRecord(java.lang.String type)
Determines wheter or not this RRGroup has an RR with a certain type. |
boolean |
isExpired()
|
java.lang.String |
toString()
|
void |
updateDurations(long time)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String name
public java.util.LinkedList records
public long expires
| Constructor Detail |
public RRGroup(java.lang.String name)
| Method Detail |
public RRGroup cache()
cache() on each RR.
public RRGroup cache(int time)
cache() on each RR. Each RR is reinitialized
to expire timems from now.
time - amount of this time this RRGroup should last.
public ResourceRecord getRecord(java.lang.String type)
type - the type this record should have.
type.
public ResourceRecord getRecord(java.lang.String type,
java.lang.String name)
name - the name this RR should havetype - the type this record should have.
type and name.public boolean hasRecord(java.lang.String type)
type - The type to check for.
public void adjustSIGRecords()
public void updateDurations(long time)
public void add(ResourceRecord rr)
public java.util.ArrayList getTypes()
public java.lang.String toString()
public boolean isExpired()
public int hashCode()
public boolean equals(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||