org.apache.james.jspf.core
Class DNSResponse

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

public class DNSResponse
extends java.lang.Object

Represent a DNSResponse


Constructor Summary
DNSResponse(java.util.List response)
           
DNSResponse(TimeoutException exception)
           
 
Method Summary
 java.util.List getResponse()
          Returns the DNS response
 java.lang.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(java.util.List response)
Method Detail

getResponse

public java.util.List 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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