hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r940061 - in /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl: CachingHttpClient.java SizeLimitedResponseReader.java
Date Sat, 01 May 2010 15:47:02 GMT
Author: sebb
Date: Sat May  1 15:47:02 2010
New Revision: 940061

URL: http://svn.apache.org/viewvc?rev=940061&view=rev
Log:
Unthrown Exceptions

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/CachingHttpClient.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/SizeLimitedResponseReader.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/CachingHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/CachingHttpClient.java?rev=940061&r1=940060&r2=940061&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/CachingHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/CachingHttpClient.java
Sat May  1 15:47:02 2010
@@ -435,8 +435,7 @@ public class CachingHttpClient implement
         return backendResponse;
     }
 
-    protected SizeLimitedResponseReader getResponseReader(HttpResponse backEndResponse)
-            throws IOException {
+    protected SizeLimitedResponseReader getResponseReader(HttpResponse backEndResponse) {
         return new SizeLimitedResponseReader(maxObjectSizeBytes, backEndResponse);
     }
 

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/SizeLimitedResponseReader.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/SizeLimitedResponseReader.java?rev=940061&r1=940060&r2=940061&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/SizeLimitedResponseReader.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/SizeLimitedResponseReader.java
Sat May  1 15:47:02 2010
@@ -52,8 +52,7 @@ public class SizeLimitedResponseReader {
     private byte[] sizeLimitedContent;
     private boolean outputStreamConsumed;
 
-    public SizeLimitedResponseReader(int maxResponseSizeBytes, HttpResponse response)
-            throws IOException {
+    public SizeLimitedResponseReader(int maxResponseSizeBytes, HttpResponse response) {
         this.maxResponseSizeBytes = maxResponseSizeBytes;
         this.response = response;
     }
@@ -116,14 +115,14 @@ public class SizeLimitedResponseReader {
         return sizeLimitedContent;
     }
 
-    public HttpResponse getReconstructedResponse() throws IOException {
+    public HttpResponse getReconstructedResponse() {
 
         InputStream combinedStream = getCombinedInputStream();
 
         return constructResponse(response, combinedStream);
     }
 
-    protected InputStream getCombinedInputStream() throws IOException {
+    protected InputStream getCombinedInputStream() {
         InputStream input1 = new ByteArrayInputStream(getResponseBytes());
         InputStream input2 = getContentInputStream();
         return new CombinedInputStream(input1, input2);
@@ -134,7 +133,7 @@ public class SizeLimitedResponseReader {
     }
 
     protected HttpResponse constructResponse(HttpResponse originalResponse,
-            InputStream combinedStream) throws IOException {
+            InputStream combinedStream) {
         HttpResponse response = new BasicHttpResponse(originalResponse.getProtocolVersion(),
                 HttpStatus.SC_OK, "Success");
 



Mime
View raw message