protected InputStream getResponseBody(HttpInvokerClientConfiguration config, PostMethod postMethod)
            throws IOException {

        if (isGzipResponse(postMethod)) {
            return new GZIPInputStream(postMethod.getResponseBodyAsStream());
        }
        else {
            return postMethod.getResponseBodyAsStream();
        }
    }
protected InputStream getResponseBody ( HttpInvokerClientConfiguration config , PostMethod postMethod ) throws IOException { if ( isGzipResponse ( postMethod ) ) { return new GZIPInputStream ( postMethod . getResponseBodyAsStream ( ) ) ; } else { return postMethod . getResponseBodyAsStream ( ) ; } }
Extract the response body from the given executed remote invocation request.
<p>The default implementation simply fetches the PostMethod's response body stream.
If the response is recognized as GZIP response, the InputStream will get wrapped
in a GZIPInputStream.
@param config the HTTP invoker configuration that specifies the target service
@param postMethod the PostMethod to read the response body from
@return an InputStream for the response body
@throws IOException if thrown by I/O methods
@see #isGzipResponse
@see java.util.zip.GZIPInputStream
@see org.apache.commons.httpclient.methods.PostMethod#getResponseBodyAsStream()
@see org.apache.commons.httpclient.methods.PostMethod#getResponseHeader(String)