org.apache.james.jspf.core
Class DNSResponse

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

public class DNSResponse
extends Object

Represent a DNSResponse


Constructor Summary
DNSResponse(List<String> response)
           
DNSResponse(TimeoutException exception)
           
 
Method Summary
 List<String> getResponse()
          Returns the DNS response
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DNSResponse

public DNSResponse(TimeoutException exception)

DNSResponse

public DNSResponse(List<String> response)
Method Detail

getResponse

public List<String> getResponse()
                         throws TimeoutException
Returns the DNS response

Returns:
the dns repsonse
Throws:
TimeoutException - get thrown if an timeout was returned while tried to process a dns request

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


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