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 E98A5BF53 for ; Wed, 18 Jan 2012 19:31:08 +0000 (UTC) Received: (qmail 15284 invoked by uid 500); 18 Jan 2012 19:31:05 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 14398 invoked by uid 500); 18 Jan 2012 19:31: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 14319 invoked by uid 99); 18 Jan 2012 19:31:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 19:31:03 +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 19:31:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 45A1F1530C1 for ; Wed, 18 Jan 2012 19:30:42 +0000 (UTC) Date: Wed, 18 Jan 2012 19:30:42 +0000 (UTC) From: "Karthik K (Updated) (JIRA)" To: dev@hc.apache.org Message-ID: <1366023553.53663.1326915042286.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <433724497.53648.1326915041512.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HTTPCLIENT-1159) 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 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karthik K updated HTTPCLIENT-1159: ---------------------------------- Attachment: HTTPCLIENT-1159.patch > 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.1.3 > > 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