com.dtolabs.client.utils
Interface WebserviceResponse

All Superinterfaces:
ServerResponse
All Known Subinterfaces:
WebserviceHttpClient

public interface WebserviceResponse
extends ServerResponse

WebserviceResponse interface defines results of a request made to Webservice service, extending the base ServerResponse.


Method Summary
 java.lang.String getResponseMessage()
          return a response message
 org.dom4j.Document getResultDoc()
          return an XML document if it was parsed successfully.
 boolean hasResultDoc()
          return true if the resultbean was present
 boolean isErrorResponse()
          Return true if the response was an error message
 boolean isValidResponse()
          is the response valid
 
Methods inherited from interface com.dtolabs.client.utils.ServerResponse
getResponseBody, getResultContentType, getResultStream
 

Method Detail

isErrorResponse

boolean isErrorResponse()
Return true if the response was an error message

Returns:
true if the response was an error message

hasResultDoc

boolean hasResultDoc()
return true if the resultbean was present

Returns:
true if the resultbean was present

getResultDoc

org.dom4j.Document getResultDoc()
return an XML document if it was parsed successfully. return null otherwise or if none was received.

Returns:
an XML document if it was parsed successfully. return null otherwise or if none was received.

isValidResponse

boolean isValidResponse()
is the response valid

Returns:
true if the response was valid

getResponseMessage

java.lang.String getResponseMessage()
return a response message

Returns:
the response message or null if none is present