|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNSServer
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)
Get a priority-sorted collection of DNS MX records for a given hostname TODO: Change this to a list, as not all collections are sortable |
java.util.Iterator |
getSMTPHostAddresses(java.lang.String domainName)
Performs DNS lookups as needed to find servers which should or might support SMTP. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
java.util.Collection findMXRecords(java.lang.String hostname)
Get a priority-sorted collection of DNS MX records for a given hostname
TODO: Change this to a list, as not all collections are sortable
hostname
- the hostname to check
java.util.Iterator getSMTPHostAddresses(java.lang.String domainName)
domainName
- the String domain for which SMTP host addresses are
sought.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |