org.apache.james.services
Interface DNSServer

All Known Implementing Classes:
DNSServer

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.

Author:
Harmeet

Field Summary
static String ROLE
          The component role used by components implementing this service
 
Method Summary
 Collection findMXRecords(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
 

Field Detail

ROLE

public static final String ROLE
The component role used by components implementing this service

See Also:
Constant Field Values
Method Detail

findMXRecords

public Collection findMXRecords(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

Parameters:
hostname - the hostname to check
Returns:
collection of strings representing MX record values.


"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."