hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik K (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1159) HttpClientUtils - Helper methods to release resources of HttpClient / HttpResponse after use
Date Wed, 18 Jan 2012 22:24:39 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188753#comment-13188753
] 

Karthik K commented on HTTPCLIENT-1159:
---------------------------------------

Thanks, Oleg and Sebb.  My bad for completely missing that one. Point taken and a new patch
uploaded. ( and the old ones removed ). 

Also added the license header to the test class as well. 

Regarding EntityUtils.consumerQuietly , that would probably go into httpcore and a different
jira ticket hence ? 



                
> HttpClientUtils  - Helper methods to release resources of HttpClient / HttpResponse after
use 
> ----------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1159
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1159
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.1.2
>            Reporter: Karthik K
>             Fix For: 4.2 Alpha2
>
>         Attachments: HTTPCLIENT-1159.patch
>
>
> Found myself writing this boiler plate code in various httpclient related projects ,
to release resources , and wanted to provide a simpler way to release resources similar to
IOUtils.closeQuietly as opposed to maintaining the same in my code. 
> New class: 
> o.a.http.client.utils.HttpClientUtils added: 
> <pre>
>   public static void closeQuietly(final HttpResponse response); 
>   public static void closeQuietly(final HttpClient httpClient); 
> </pre>
> with 2 methods ( as above ) in the same, to help release resources: 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message