|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.Message
org.xbill.DNS.Update
public class Update
A helper class for constructing dynamic DNS (DDNS) update messages.
Field Summary |
---|
Fields inherited from class org.xbill.DNS.Message |
---|
MAXLENGTH |
Constructor Summary | |
---|---|
Update(Name zone)
Creates an update message. |
|
Update(Name zone,
int dclass)
Creates an update message. |
Method Summary | |
---|---|
void |
absent(Name name)
Inserts a prerequisite that the specified name does not exist; that is, there are no records with the given name in the zone. |
void |
absent(Name name,
int type)
Inserts a prerequisite that the specified rrset does not exist; that is, there are no records with the given name and type in the zone. |
void |
add(Name name,
int type,
long ttl,
String record)
Parses a record from the string, and indicates that the record should be inserted into the zone. |
void |
add(Name name,
int type,
long ttl,
Tokenizer tokenizer)
Parses a record from the tokenizer, and indicates that the record should be inserted into the zone. |
void |
add(Record record)
Indicates that the record should be inserted into the zone. |
void |
add(Record[] records)
Indicates that the records should be inserted into the zone. |
void |
add(RRset rrset)
Indicates that all of the records in the rrset should be inserted into the zone. |
void |
delete(Name name)
Indicates that all records with the given name should be deleted from the zone. |
void |
delete(Name name,
int type)
Indicates that all records with the given name and type should be deleted from the zone. |
void |
delete(Name name,
int type,
String record)
Parses a record from the string, and indicates that the record should be deleted from the zone. |
void |
delete(Name name,
int type,
Tokenizer tokenizer)
Parses a record from the tokenizer, and indicates that the record should be deleted from the zone. |
void |
delete(Record record)
Indicates that the specified record should be deleted from the zone. |
void |
delete(Record[] records)
Indicates that the records should be deleted from the zone. |
void |
delete(RRset rrset)
Indicates that all of the records in the rrset should be deleted from the zone. |
void |
present(Name name)
Inserts a prerequisite that the specified name exists; that is, there exist records with the given name in the zone. |
void |
present(Name name,
int type)
Inserts a prerequisite that the specified rrset exists; that is, there exist records with the given name and type in the zone. |
void |
present(Name name,
int type,
String record)
Parses a record from the string, and inserts a prerequisite that the record exists. |
void |
present(Name name,
int type,
Tokenizer tokenizer)
Parses a record from the tokenizer, and inserts a prerequisite that the record exists. |
void |
present(Record record)
Inserts a prerequisite that the specified record exists. |
void |
replace(Name name,
int type,
long ttl,
String record)
Parses a record from the string, and indicates that the record should be inserted into the zone replacing any other records with the same name and type. |
void |
replace(Name name,
int type,
long ttl,
Tokenizer tokenizer)
Parses a record from the tokenizer, and indicates that the record should be inserted into the zone replacing any other records with the same name and type. |
void |
replace(Record record)
Indicates that the record should be inserted into the zone replacing any other records with the same name and type. |
void |
replace(Record[] records)
Indicates that the records should be inserted into the zone replacing any other records with the same name and type as each one. |
void |
replace(RRset rrset)
Indicates that all of the records in the rrset should be inserted into the zone replacing any other records with the same name and type. |
Methods inherited from class org.xbill.DNS.Message |
---|
addRecord, clone, findRecord, findRecord, findRRset, findRRset, getHeader, getOPT, getQuestion, getRcode, getSectionArray, getSectionRRsets, getTSIG, isSigned, isVerified, newQuery, newUpdate, numBytes, removeAllRecords, removeRecord, sectionToString, setHeader, setTSIG, toString, toWire, toWire |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Update(Name zone, int dclass)
zone
- The name of the zone being updated.dclass
- The class of the zone being updated.public Update(Name zone)
zone
- The name of the zone being updated.Method Detail |
---|
public void present(Name name)
public void present(Name name, int type)
public void present(Name name, int type, String record) throws IOException
IOException
- The record could not be parsed.public void present(Name name, int type, Tokenizer tokenizer) throws IOException
IOException
- The record could not be parsed.public void present(Record record)
public void absent(Name name)
public void absent(Name name, int type)
public void add(Name name, int type, long ttl, String record) throws IOException
IOException
- The record could not be parsed.public void add(Name name, int type, long ttl, Tokenizer tokenizer) throws IOException
IOException
- The record could not be parsed.public void add(Record record)
public void add(Record[] records)
public void add(RRset rrset)
public void delete(Name name)
public void delete(Name name, int type)
public void delete(Name name, int type, String record) throws IOException
IOException
- The record could not be parsed.public void delete(Name name, int type, Tokenizer tokenizer) throws IOException
IOException
- The record could not be parsed.public void delete(Record record)
public void delete(Record[] records)
public void delete(RRset rrset)
public void replace(Name name, int type, long ttl, String record) throws IOException
IOException
- The record could not be parsed.public void replace(Name name, int type, long ttl, Tokenizer tokenizer) throws IOException
IOException
- The record could not be parsed.public void replace(Record record)
public void replace(Record[] records)
public void replace(RRset rrset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |