|
||||||||||
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.DnsEntryMX
public class DnsEntryMX
the record describes an "MX" record in the domain.
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class de.knipp.rritoolkit.dns.DnsEntry |
---|
allFromList, fromXml, getOwner, isIPv6, setOwner |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int preference
private java.lang.String mailExchangeName
private static final java.util.regex.Pattern parsePattern
Constructor Detail |
---|
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 entry
ResponseParseException
- on parsing problemsprotected DnsEntryMX(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 void accept(DnsEntryVisitor visitor)
accept
in class DnsEntry
visitor
- the visitorpublic DnsEntryMX clone()
clone
in class DnsEntry
public java.lang.String toString()
toString
in class java.lang.Object
public int getPreference()
public java.lang.String getMailExchangeName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |