Resource generate(String requestId, InputStream instream, InputLimit limit) throws IOException
Resourcefrom a given response body.
requestId- a unique identifier for this particular response body
instream- the original
InputStreamcontaining the response body of the origin HTTP response.
limit- maximum number of bytes to consume of the response body; if this limit is reached before the response body is fully consumed, mark the limit has having been reached and return a
Resourcecontaining the data read to that point.
Resourcecontaining however much of the response body was successfully read.
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.