org.apache.james.jspf.core
Interface DNSService

All Known Implementing Classes:
DNSServiceXBillImpl

public interface DNSService

Interface which should be used to access all necassary DNS-Records


Method Summary
 java.util.List getLocalDomainNames()
          Try to get all domain names for the running host
 int getRecordLimit()
           
 java.util.List getRecords(DNSRequest request)
          Retrieve dns records for the given host
 void setRecordLimit(int recordLimit)
          Sets a new limit for the number of records for MX and PTR lookups.
 void setTimeOut(int timeOut)
          Set the timeout for DNS-Requests
 

Method Detail

getRecords

java.util.List getRecords(DNSRequest request)
                          throws TimeoutException
Retrieve dns records for the given host

Parameters:
request - the dns request
Returns:
an array of Strings representing the records
Throws:
TimeoutException

getLocalDomainNames

java.util.List getLocalDomainNames()
Try to get all domain names for the running host

Returns:
names A List contains all domain names which could resolved

setTimeOut

void setTimeOut(int timeOut)
Set the timeout for DNS-Requests

Parameters:
timeOut - The timeout in seconds

getRecordLimit

int getRecordLimit()
Returns:
the current record limit

setRecordLimit

void setRecordLimit(int recordLimit)
Sets a new limit for the number of records for MX and PTR lookups.

Parameters:
recordLimit - the new limit (0 => unlimited)


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.