"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient-cache/src/main/java/org/apache/http/client/cache/ResourceFactory.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

ResourceFactory.java  (httpcomponents-client-4.5.6-src):ResourceFactory.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 44 skipping to change at line 44
* HTTP response bodies. * HTTP response bodies.
* *
* @since 4.1 * @since 4.1
*/ */
public interface ResourceFactory { public interface ResourceFactory {
/** /**
* Creates a {@link Resource} from a given response body. * Creates a {@link Resource} from a given response body.
* @param requestId a unique identifier for this particular * @param requestId a unique identifier for this particular
* response body * response body
* @param instream the original {@link InputStream} * @param inStream the original {@link InputStream}
* containing the response body of the origin HTTP response. * containing the response body of the origin HTTP response.
* @param limit maximum number of bytes to consume of the * @param limit maximum number of bytes to consume of the
* response body; if this limit is reached before the * response body; if this limit is reached before the
* response body is fully consumed, mark the limit has * response body is fully consumed, mark the limit has
* having been reached and return a {@code Resource} * having been reached and return a {@code Resource}
* containing the data read to that point. * containing the data read to that point.
* @return a {@code Resource} containing however much of * @return a {@code Resource} containing however much of
* the response body was successfully read. * the response body was successfully read.
* @throws IOException * @throws IOException
*/ */
Resource generate(String requestId, InputStream instream, InputLimit limit) throws IOException; Resource generate(String requestId, InputStream inStream, InputLimit limit) throws IOException;
/** /**
* Clones an existing {@link Resource}. * Clones an existing {@link Resource}.
* @param requestId unique identifier provided to associate * @param requestId unique identifier provided to associate
* with the cloned response body. * with the cloned response body.
* @param resource the original response body to clone. * @param resource the original response body to clone.
* @return the {@code Resource} copy * @return the {@code Resource} copy
* @throws IOException * @throws IOException
*/ */
Resource copy(String requestId, Resource resource) throws IOException; Resource copy(String requestId, Resource resource) throws IOException;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)