From 50b27ac7908615d8e5cf9e13b9a9a7b67cb4c1af Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 23 Feb 2014 02:42:20 +0000 Subject: [PATCH] Direct access to static fields git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570962 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/impl/client/cache/CachingExec.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java index 16f6ace86..493bf036d 100644 --- a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java +++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java @@ -63,6 +63,7 @@ import org.apache.http.impl.execchain.ClientExecChain; import org.apache.http.message.BasicHttpResponse; import org.apache.http.protocol.HTTP; import org.apache.http.protocol.HttpContext; +import org.apache.http.protocol.HttpCoreContext; import org.apache.http.util.Args; import org.apache.http.util.VersionInfo; @@ -291,10 +292,10 @@ public class CachingExec implements ClientExecChain { return callBackend(route, request, context, execAware); } context.setAttribute(HttpClientContext.HTTP_ROUTE, route); - context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, target); - context.setAttribute(HttpClientContext.HTTP_REQUEST, request); - context.setAttribute(HttpClientContext.HTTP_RESPONSE, out); - context.setAttribute(HttpClientContext.HTTP_REQ_SENT, Boolean.TRUE); + context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target); + context.setAttribute(HttpCoreContext.HTTP_REQUEST, request); + context.setAttribute(HttpCoreContext.HTTP_RESPONSE, out); + context.setAttribute(HttpCoreContext.HTTP_REQ_SENT, Boolean.TRUE); return out; }