org.apache.james.jspf.core
Class DNSLookupContinuation

java.lang.Object
  extended by org.apache.james.jspf.core.DNSLookupContinuation

public class DNSLookupContinuation
extends java.lang.Object

This object is used as the return value for spf resolving tasks. Every time a DNS resolution is needed the task should simply return this one including the DNSRequest and a listener to be invoked when the answer will be available.


Constructor Summary
DNSLookupContinuation(DNSRequest request, SPFCheckerDNSResponseListener listener)
           
 
Method Summary
 SPFCheckerDNSResponseListener getListener()
          Return the SPFCheckerDNSResponseListener which should called for the DNSRequest
 DNSRequest getRequest()
          Return the DNSRequest which was used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSLookupContinuation

public DNSLookupContinuation(DNSRequest request,
                             SPFCheckerDNSResponseListener listener)
Method Detail

getRequest

public DNSRequest getRequest()
Return the DNSRequest which was used

Returns:
request

getListener

public SPFCheckerDNSResponseListener getListener()
Return the SPFCheckerDNSResponseListener which should called for the DNSRequest

Returns:
listener


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