|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jspf.impl.DNSServiceXBillImpl
public class DNSServiceXBillImpl
This class contains helper to get all neccassary DNS infos that are needed for SPF
| Field Summary | |
|---|---|
protected Logger |
log
|
protected int |
recordLimit
|
protected org.xbill.DNS.Resolver |
resolver
|
| Constructor Summary | |
|---|---|
DNSServiceXBillImpl(Logger logger)
Default Constructor. |
|
DNSServiceXBillImpl(Logger logger,
org.xbill.DNS.Resolver resolver)
Constructor to specify a custom resolver. |
|
| Method Summary | |
|---|---|
static List<String> |
convertRecordsToList(org.xbill.DNS.Record[] rr)
Convert the given Record array to a List |
List<String> |
getLocalDomainNames()
Try to get all domain names for the running host |
int |
getRecordLimit()
|
List<String> |
getRecords(DNSRequest request)
Retrieve dns records for the given host |
void |
setRecordLimit(int recordLimit)
Set a new limit for the number of records for MX and PTR lookups. |
void |
setTimeOut(int timeOut)
NOTE if this class is created with the default constructor it will use the static DefaultResolver from DNSJava and this method will change it's timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logger log
protected int recordLimit
protected org.xbill.DNS.Resolver resolver
| Constructor Detail |
|---|
public DNSServiceXBillImpl(Logger logger)
public DNSServiceXBillImpl(Logger logger,
org.xbill.DNS.Resolver resolver)
| Method Detail |
|---|
public void setTimeOut(int timeOut)
setTimeOut in interface DNSServicetimeOut - The timeout in secondsDNSService.setTimeOut(int)public List<String> getLocalDomainNames()
DNSService
getLocalDomainNames in interface DNSServiceDNSService.getLocalDomainNames()public int getRecordLimit()
getRecordLimit in interface DNSServicepublic void setRecordLimit(int recordLimit)
setRecordLimit in interface DNSServicerecordLimit -
public List<String> getRecords(DNSRequest request)
throws TimeoutException
DNSService
getRecords in interface DNSServicerequest - the dns request
TimeoutExceptionDNSService.getRecords(org.apache.james.jspf.core.DNSRequest)public static List<String> convertRecordsToList(org.xbill.DNS.Record[] rr)
rr - Record array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||