|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.api.dnsservice.AbstractDNSServer
public class AbstractDNSServer
Abstract class to simplify the mocks
Field Summary |
---|
Fields inherited from interface org.apache.james.api.dnsservice.DNSService |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractDNSServer()
|
Method Summary | |
---|---|
java.util.Collection |
findMXRecords(java.lang.String hostname)
Return a prioritized unmodifiable list of host handling mail for the domain. |
java.util.Collection |
findTXTRecords(java.lang.String hostname)
Get a collection of DNS TXT Records |
java.net.InetAddress[] |
getAllByName(java.lang.String host)
|
java.net.InetAddress |
getByName(java.lang.String host)
|
java.lang.String |
getHostName(java.net.InetAddress addr)
|
java.net.InetAddress |
getLocalHost()
|
java.util.Iterator |
getSMTPHostAddresses(java.lang.String domainName)
Returns an Iterator over org.apache.mailet.HostAddress, a specialized subclass of javax.mail.URLName, which provides location information for servers that are specified as mail handlers for the given hostname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDNSServer()
Method Detail |
---|
public java.util.Collection findMXRecords(java.lang.String hostname)
DNSService
Return a prioritized unmodifiable list of host handling mail for the domain.
First lookup MX hosts, then MX hosts of the CNAME adress, and if no server is found return the IP of the hostname
findMXRecords
in interface DNSService
hostname
- domain name to look up
DNSService.findMXRecords(String)
public java.util.Collection findTXTRecords(java.lang.String hostname)
DNSService
findTXTRecords
in interface DNSService
hostname
- The hostname to check
DNSService.findTXTRecords(String)
public java.net.InetAddress[] getAllByName(java.lang.String host) throws java.net.UnknownHostException
getAllByName
in interface DNSService
java.net.UnknownHostException
DNSService.getAllByName(String)
public java.net.InetAddress getByName(java.lang.String host) throws java.net.UnknownHostException
getByName
in interface DNSService
java.net.UnknownHostException
DNSService.getByName(String)
public java.util.Iterator getSMTPHostAddresses(java.lang.String domainName)
DNSService
getSMTPHostAddresses
in interface DNSService
domainName
- - the domain for which to find mail servers
DNSService.getSMTPHostAddresses(String)
public java.lang.String getHostName(java.net.InetAddress addr)
getHostName
in interface DNSService
DNSService.getHostName(java.net.InetAddress)
public java.net.InetAddress getLocalHost() throws java.net.UnknownHostException
getLocalHost
in interface DNSService
java.net.UnknownHostException
DNSService.getLocalHost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |