Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1ABEBC38 for ; Wed, 18 Jan 2012 22:19:04 +0000 (UTC) Received: (qmail 79937 invoked by uid 500); 18 Jan 2012 22:19:04 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 79801 invoked by uid 500); 18 Jan 2012 22:19:04 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 79783 invoked by uid 99); 18 Jan 2012 22:19:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 22:19:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 22:19:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E00711547CA for ; Wed, 18 Jan 2012 22:18:40 +0000 (UTC) Date: Wed, 18 Jan 2012 22:18:40 +0000 (UTC) From: "Karthik K (Updated) (JIRA)" To: dev@hc.apache.org Message-ID: <2068506838.54110.1326925120919.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <433724497.53648.1326915041512.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HTTPCLIENT-1159) HttpClientUtils - Helper methods to release resources of HttpClient / HttpResponse after use MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karthik K updated HTTPCLIENT-1159: ---------------------------------- Attachment: (was: HTTPCLIENT-1159.patch) > 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: >
>   public static void closeQuietly(final HttpResponse response); 
>   public static void closeQuietly(final HttpClient httpClient); 
> 
> 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