public class DnsEntryNS extends DnsEntry
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
addrsIPv4
the list of IPv4 addresses
|
private java.util.List<java.lang.String> |
addrsIPv6
the list of IPv6 addresses
|
private java.lang.String |
nsName
the name server name
|
Modifier | Constructor and Description |
---|---|
protected |
DnsEntryNS(org.w3c.dom.Element el)
constructor
|
|
DnsEntryNS(java.lang.String name,
java.util.Collection<java.lang.String> ipv4,
java.util.Collection<java.lang.String> ipv6)
constructor
|
|
DnsEntryNS(java.lang.String name,
java.util.List<java.lang.String> addrs)
constructor
|
|
DnsEntryNS(java.lang.String name,
java.lang.String... addrs)
constructor
|
|
DnsEntryNS(java.lang.String name,
java.lang.String[] ipv4,
java.lang.String[] ipv6)
constructor
|
protected |
DnsEntryNS(java.lang.String encodedDomainName,
java.lang.String name,
java.util.List<java.lang.String> ips)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DnsEntryVisitor visitor)
accept the given visitor
|
DnsEntryNS |
clone()
create a clone of this instance.
|
java.util.List<java.lang.String> |
getAddresses()
return the list of addresses assigned to the name server
|
java.util.List<java.lang.String> |
getIPv4Addresses()
return the list of IPv4 addresses assigned to the name server
|
java.util.List<java.lang.String> |
getIPv6Addresses()
return the list of IPv6 addresses assigned to the name server
|
java.lang.String |
getNameserverName()
return the name server 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
|
private java.lang.String nsName
private java.util.List<java.lang.String> addrsIPv4
private java.util.List<java.lang.String> addrsIPv6
public DnsEntryNS(java.lang.String name, java.lang.String... addrs)
name
- the name of the name serveraddrs
- the IP addressespublic DnsEntryNS(java.lang.String name, java.util.List<java.lang.String> addrs)
name
- the name of the name serveraddrs
- the IP addressespublic DnsEntryNS(java.lang.String name, java.lang.String[] ipv4, java.lang.String[] ipv6)
name
- the name of the name serveripv4
- the IPv4 addressesipv6
- the IPv6 addressespublic DnsEntryNS(java.lang.String name, java.util.Collection<java.lang.String> ipv4, java.util.Collection<java.lang.String> ipv6)
name
- the name of the name serveripv4
- the IPv4 addressesipv6
- the IPv6 addressesprotected DnsEntryNS(java.lang.String encodedDomainName, java.lang.String name, java.util.List<java.lang.String> ips) throws ResponseParseException
encodedDomainName
- the encoded domain namename
- the name serverips
- the mixed list of IPv4 and IPv6 addressesResponseParseException
- on syntactical errorsprotected DnsEntryNS(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the elementorg.w3c.dom.DOMException
- on DOM exceptionsResponseParseException
- on wrong contentpublic void toList(KVList list) throws EncodeException
toList
in class DnsEntry
list
- the listEncodeException
- 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 dataorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- if the encoding failspublic void accept(DnsEntryVisitor visitor)
public DnsEntryNS clone()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.String> getAddresses()
public java.util.List<java.lang.String> getIPv4Addresses()
public java.util.List<java.lang.String> getIPv6Addresses()
public java.lang.String getNameserverName()
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH