|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.ZoneTransferIn
An incoming DNS Zone Transfer. To use this class, first initialize an object, then call the run() method. If run() doesn't throw an exception the result will either be an IXFR-style response, an AXFR-style response, or an indication that the zone is up to date.
Nested Class Summary | |
static class |
ZoneTransferIn.Delta
|
Method Summary | |
List |
getAXFR()
Gets the AXFR-style response. |
List |
getIXFR()
Gets the IXFR-style response. |
boolean |
isAXFR()
Returns true if the response is an AXFR-style response (List of Records). |
boolean |
isCurrent()
Returns true if the response indicates that the zone is up to date. |
boolean |
isIXFR()
Returns true if the response is an IXFR-style response (List of Deltas). |
static ZoneTransferIn |
newAXFR(Name zone,
SimpleResolver res)
Instantiates a ZoneTransferIn object to do an AXFR (full zone transfer). |
static ZoneTransferIn |
newAXFR(Name zone,
String host,
int port,
TSIG key)
Instantiates a ZoneTransferIn object to do an AXFR (full zone transfer). |
static ZoneTransferIn |
newAXFR(Name zone,
String host,
TSIG key)
Instantiates a ZoneTransferIn object to do an AXFR (full zone transfer). |
static ZoneTransferIn |
newIXFR(Name zone,
int serial,
boolean fallback,
SimpleResolver res)
Instantiates a ZoneTransferIn object to do an IXFR (incremental zone transfer). |
static ZoneTransferIn |
newIXFR(Name zone,
int serial,
boolean fallback,
String host,
int port,
TSIG key)
Instantiates a ZoneTransferIn object to do an IXFR (incremental zone transfer). |
static ZoneTransferIn |
newIXFR(Name zone,
int serial,
boolean fallback,
String host,
TSIG key)
Instantiates a ZoneTransferIn object to do an IXFR (incremental zone transfer). |
List |
run()
Does the zone transfer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ZoneTransferIn newAXFR(Name zone, SimpleResolver res)
zone
- The zone to transfer.res
- The resolver to use when doing the transfer.
public static ZoneTransferIn newAXFR(Name zone, String host, int port, TSIG key) throws UnknownHostException
zone
- The zone to transfer.host
- The host from which to transfer the zone.port
- The port to connect to on the server, or 0 for the default.key
- The TSIG key used to authenticate the transfer, or null.
UnknownHostException
- The host does not exist.public static ZoneTransferIn newAXFR(Name zone, String host, TSIG key) throws UnknownHostException
zone
- The zone to transfer.host
- The host from which to transfer the zone.key
- The TSIG key used to authenticate the transfer, or null.
UnknownHostException
- The host does not exist.public static ZoneTransferIn newIXFR(Name zone, int serial, boolean fallback, SimpleResolver res)
zone
- The zone to transfer.serial
- The existing serial number.fallback
- If true, fall back to AXFR if IXFR is not supported.res
- The resolver to use when doing the transfer.
public static ZoneTransferIn newIXFR(Name zone, int serial, boolean fallback, String host, int port, TSIG key) throws UnknownHostException
zone
- The zone to transfer.serial
- The existing serial number.fallback
- If true, fall back to AXFR if IXFR is not supported.host
- The host from which to transfer the zone.port
- The port to connect to on the server, or 0 for the default.key
- The TSIG key used to authenticate the transfer, or null.
UnknownHostException
- The host does not exist.public static ZoneTransferIn newIXFR(Name zone, int serial, boolean fallback, String host, TSIG key) throws UnknownHostException
zone
- The zone to transfer.serial
- The existing serial number.fallback
- If true, fall back to AXFR if IXFR is not supported.host
- The host from which to transfer the zone.key
- The TSIG key used to authenticate the transfer, or null.
UnknownHostException
- The host does not exist.public List run() throws IOException, ZoneTransferException
IOException
- The zone transfer failed to due an IO problem.
ZoneTransferException
- The zone transfer failed to due a problem
with the zone transfer itself.public boolean isAXFR()
public List getAXFR()
public boolean isIXFR()
public List getIXFR()
public boolean isCurrent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |