hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Replacement to ExecutionContext
Date Mon, 12 Aug 2013 08:04:26 GMT
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


Mime
View raw message