|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNSService
Provides abstraction for DNS resolutions. The interface is Mail specific. It may be a good idea to make the interface more generic or expose commonly needed DNS methods.
Field Summary | |
---|---|
static java.lang.String |
ROLE
The component role used by components implementing this service |
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. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
java.util.Collection findMXRecords(java.lang.String hostname) throws TemporaryResolutionException
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
hostname
- domain name to look up
TemporaryResolutionException
- get thrown on temporary problemsjava.util.Collection findTXTRecords(java.lang.String hostname)
hostname
- The hostname to check
java.util.Iterator getSMTPHostAddresses(java.lang.String domainName) throws TemporaryResolutionException
domainName
- - the domain for which to find mail servers
TemporaryResolutionException
- get thrown on temporary problemsjava.net.InetAddress[] getAllByName(java.lang.String host) throws java.net.UnknownHostException
java.net.UnknownHostException
InetAddress.getAllByName(String)
java.net.InetAddress getByName(java.lang.String host) throws java.net.UnknownHostException
java.net.UnknownHostException
InetAddress.getByName(String)
java.lang.String getHostName(java.net.InetAddress addr)
Address.getHostName(InetAddress)
java.net.InetAddress getLocalHost() throws java.net.UnknownHostException
java.net.UnknownHostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |