|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.dns.DnsEntry
de.knipp.rritoolkit.dns.DnsEntryAddress
public abstract class DnsEntryAddress
base class for A or AAAA records in the domain
Field Summary | |
---|---|
private java.lang.String |
ipAddress
the IP address |
Constructor Summary | |
---|---|
protected |
DnsEntryAddress(org.w3c.dom.Element el)
constructor |
protected |
DnsEntryAddress(java.lang.String owner,
java.lang.String address)
constructor |
Method Summary | |
---|---|
static DnsEntryAddress |
createAddressEntry(java.lang.String owner,
java.lang.String address)
create either an A or an AAAA record, depending on the given address |
java.lang.String |
getAddress()
return the IP address |
protected abstract java.lang.String |
getElementName()
return the (local) element name |
protected abstract java.lang.String |
getRecordName()
return the record name |
void |
toList(KVList list)
convert the instance to an entry in the given list |
java.lang.String |
toString()
create a string representation (for debugging purposes) |
void |
toXml(org.w3c.dom.Node node,
java.lang.String encodedDomainName)
convert the instance to XML |
Methods inherited from class de.knipp.rritoolkit.dns.DnsEntry |
---|
accept, allFromList, clone, fromXml, getOwner, isIPv6, setOwner |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String ipAddress
Constructor Detail |
---|
protected DnsEntryAddress(java.lang.String owner, java.lang.String address)
owner
- the owneraddress
- the addressprotected DnsEntryAddress(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the element
org.w3c.dom.DOMException
- on DOM exceptions
ResponseParseException
- on wrong contentMethod Detail |
---|
public void toList(KVList list) throws EncodeException
toList
in class DnsEntry
list
- the list
EncodeException
- if the encoding failspublic void toXml(org.w3c.dom.Node node, java.lang.String encodedDomainName) throws org.w3c.dom.DOMException, EncodeException
toXml
in class DnsEntry
node
- the node to append toencodedDomainName
- the encoded domain name from the domain
info data
org.w3c.dom.DOMException
- on DOM exceptions
EncodeException
- if the encoding failspublic java.lang.String toString()
toString
in class java.lang.Object
protected abstract java.lang.String getRecordName()
protected abstract java.lang.String getElementName()
public static DnsEntryAddress createAddressEntry(java.lang.String owner, java.lang.String address)
owner
- the owneraddress
- the address
public java.lang.String getAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |