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 2F06610661 for ; Mon, 12 Aug 2013 08:05:28 +0000 (UTC) Received: (qmail 89005 invoked by uid 500); 12 Aug 2013 08:05:28 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 88540 invoked by uid 500); 12 Aug 2013 08:05:19 -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 88521 invoked by uid 99); 12 Aug 2013 08:05:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 08:05:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 08:05:11 +0000 Received: from [192.168.42.242] (unknown [213.55.184.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id 81C4CB801E2; Mon, 12 Aug 2013 10:04:29 +0200 (CEST) Message-ID: <1376294666.9276.1.camel@ubuntu> Subject: Re: Replacement to ExecutionContext From: Oleg Kalnichevski To: HttpComponents Project Cc: "dev@synapse.apache.org" Date: Mon, 12 Aug 2013 10:04:26 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2013-08-09 at 19:47 -0700, Hiranya Jayathilaka wrote: > Hi Oleg, > > I'm attempting to migrate Synapse to HTTP Core 4.3. We have code similar to the following fragment in several places in the passthrough and NHTTP transports: > > httpContext.setAttribute(ExecutionContext.HTTP_CONNECTION, conn); > httpContext.setAttribute(ExecutionContext.HTTP_REQUEST, null); > httpContext.setAttribute(ExecutionContext.HTTP_RESPONSE, response); > > It looks like ExecutionContext is deprecated in 4.3. What is the alternative to that? Or do we need the above code segment at all with the latest Http Core? > > Thanks, > Hiranya Hi Hiranya Use HttpCoreContext instead. http://hc.apache.org/httpcomponents-core-4.3.x/httpcore/apidocs/org/apache/http/protocol/HttpCoreContext.html Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org