org.xbill.DNS
public class Update extends Message
Constructor and Description |
---|
Update(Name zone)
Creates an update message.
|
Update(Name zone,
int dclass)
Creates an update message.
|
Modifier and Type | Method and Description |
---|---|
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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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.
|
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
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.public void present(Name name)
public void present(Name name, int type)
public void present(Name name, int type, java.lang.String record) throws java.io.IOException
java.io.IOException
- The record could not be parsed.public void present(Name name, int type, Tokenizer tokenizer) throws java.io.IOException
java.io.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, java.lang.String record) throws java.io.IOException
java.io.IOException
- The record could not be parsed.public void add(Name name, int type, long ttl, Tokenizer tokenizer) throws java.io.IOException
java.io.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, java.lang.String record) throws java.io.IOException
java.io.IOException
- The record could not be parsed.public void delete(Name name, int type, Tokenizer tokenizer) throws java.io.IOException
java.io.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, java.lang.String record) throws java.io.IOException
java.io.IOException
- The record could not be parsed.public void replace(Name name, int type, long ttl, Tokenizer tokenizer) throws java.io.IOException
java.io.IOException
- The record could not be parsed.public void replace(Record record)
public void replace(Record[] records)
public void replace(RRset rrset)