public class DnsEntryMX extends DnsEntry
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mailExchangeName
the domain name of the mail exchange server
|
private static java.util.regex.Pattern |
parsePattern
the pattern to parse the contents of the value
|
private int |
preference
the priority
|
Modifier | Constructor and Description |
---|---|
protected |
DnsEntryMX(org.w3c.dom.Element el)
constructor
|
|
DnsEntryMX(java.lang.String theOwner,
int thePreference,
java.lang.String exchangeName)
constructor
|
protected |
DnsEntryMX(java.lang.String owner,
java.lang.String value)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DnsEntryVisitor visitor)
accept the given visitor
|
DnsEntryMX |
clone()
create a clone of this instance.
|
java.lang.String |
getMailExchangeName()
return the exchange server name
|
int |
getPreference()
return the priority
|
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 int preference
private java.lang.String mailExchangeName
private static final java.util.regex.Pattern parsePattern
public DnsEntryMX(java.lang.String theOwner, int thePreference, java.lang.String exchangeName)
theOwner
- the ownerthePreference
- the preferenceexchangeName
- the name of the mail exchangeprotected DnsEntryMX(java.lang.String owner, java.lang.String value) throws ResponseParseException
owner
- the ownervalue
- the rdata part of the entryResponseParseException
- on parsing problemsprotected DnsEntryMX(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 DnsEntryMX clone()
public java.lang.String toString()
toString
in class java.lang.Object
public int getPreference()
public java.lang.String getMailExchangeName()
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH