com.dtolabs.client.utils
Interface ServerResponse

All Known Subinterfaces:
BaseHttpClient, WebserviceHttpClient, WebserviceResponse

public interface ServerResponse

ServerResponse supplies the result of a Webservice request.


Method Summary
 byte[] getResponseBody()
          Return the response as raw bytes.
 java.lang.String getResultContentType()
          return content type
 java.io.InputStream getResultStream()
          returns raw results as a Stream
 

Method Detail

getResultStream

java.io.InputStream getResultStream()
returns raw results as a Stream

Returns:
result stream

getResultContentType

java.lang.String getResultContentType()
return content type

Returns:
content type

getResponseBody

byte[] getResponseBody()
                       throws java.io.IOException
Return the response as raw bytes.

Returns:
results bytes
Throws:
java.io.IOException - if io error during result read