|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.dns.DnsEntry
public abstract class DnsEntry
base class for all name server entries
Field Summary | |
---|---|
private java.lang.String |
owner
the owner name |
private static java.util.regex.Pattern |
parsePattern
the pattern to match the entry |
Constructor Summary | |
---|---|
DnsEntry()
|
Method Summary | |
---|---|
abstract void |
accept(DnsEntryVisitor visitor)
accepts the given visitor |
static java.util.List<DnsEntry> |
allFromList(KVList list,
java.lang.String encodedDomainName)
create an instances from the given key-value list |
DnsEntry |
clone()
creates a clone of this instance. |
private static DnsEntry |
createNSEntry(java.lang.String value)
create an name server entry |
static DnsEntry |
fromXml(org.w3c.dom.Element el)
creates an instance from the given XML element |
java.lang.String |
getOwner()
returns the owner |
protected static boolean |
isIPv6(java.lang.String addr)
test whether the given address is an IPv6 address |
protected void |
setOwner(java.lang.String theOwner)
sets the owner |
abstract void |
toList(KVList list)
converts the instance to an entry in the given list |
abstract void |
toXml(org.w3c.dom.Node node,
java.lang.String encodedDomainName)
converts the instance to XML |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String owner
private static final java.util.regex.Pattern parsePattern
Constructor Detail |
---|
public DnsEntry()
Method Detail |
---|
private static DnsEntry createNSEntry(java.lang.String value) throws ResponseParseException
value
- the value
ResponseParseException
- if the data was not recognizedpublic static java.util.List<DnsEntry> allFromList(KVList list, java.lang.String encodedDomainName) throws ResponseParseException
list
- the listencodedDomainName
- the encoded domain name from the domain
info data
ResponseParseException
- if the data was not recognizedpublic static DnsEntry fromXml(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the element
org.w3c.dom.DOMException
- on DOM exceptions
ResponseParseException
- if the data was not recognizedpublic abstract void toList(KVList list) throws EncodeException
list
- the list
EncodeException
- if the encoding failspublic abstract void toXml(org.w3c.dom.Node node, java.lang.String encodedDomainName) throws org.w3c.dom.DOMException, EncodeException
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 abstract void accept(DnsEntryVisitor visitor)
visitor
- the visitorpublic DnsEntry clone()
clone
in class java.lang.Object
protected static boolean isIPv6(java.lang.String addr)
addr
- the address
true
if it is likely an IPv6 addresspublic java.lang.String getOwner()
protected void setOwner(java.lang.String theOwner)
theOwner
- the owner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |