|Constructor and Description|
|Modifier and Type||Method and Description|
Clones an existing
public 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.
public Resource copy(String requestId, Resource resource) throws IOException
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.