|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.util.List |
convertRecordsToList(org.xbill.DNS.Record[] rr)
Convert the given Record array to a List |
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)
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 DNSService
timeOut
- The timeout in secondsDNSService.setTimeOut(int)
public java.util.List getLocalDomainNames()
DNSService
getLocalDomainNames
in interface DNSService
DNSService.getLocalDomainNames()
public int getRecordLimit()
getRecordLimit
in interface DNSService
public void setRecordLimit(int recordLimit)
setRecordLimit
in interface DNSService
recordLimit
- public java.util.List getRecords(DNSRequest request) throws TimeoutException
DNSService
getRecords
in interface DNSService
request
- the dns request
TimeoutException
DNSService.getRecords(org.apache.james.jspf.core.DNSRequest)
public static java.util.List 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 |