Direct access to static fields

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-02-23 02:42:20 +00:00
parent 28c75eff7f
commit 50b27ac790
1 changed files with 5 additions and 4 deletions

View File

@ -63,6 +63,7 @@ import org.apache.http.impl.execchain.ClientExecChain;
import org.apache.http.message.BasicHttpResponse; import org.apache.http.message.BasicHttpResponse;
import org.apache.http.protocol.HTTP; import org.apache.http.protocol.HTTP;
import org.apache.http.protocol.HttpContext; import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.HttpCoreContext;
import org.apache.http.util.Args; import org.apache.http.util.Args;
import org.apache.http.util.VersionInfo; import org.apache.http.util.VersionInfo;
@ -291,10 +292,10 @@ public class CachingExec implements ClientExecChain {
return callBackend(route, request, context, execAware); return callBackend(route, request, context, execAware);
} }
context.setAttribute(HttpClientContext.HTTP_ROUTE, route); context.setAttribute(HttpClientContext.HTTP_ROUTE, route);
context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, target); context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target);
context.setAttribute(HttpClientContext.HTTP_REQUEST, request); context.setAttribute(HttpCoreContext.HTTP_REQUEST, request);
context.setAttribute(HttpClientContext.HTTP_RESPONSE, out); context.setAttribute(HttpCoreContext.HTTP_RESPONSE, out);
context.setAttribute(HttpClientContext.HTTP_REQ_SENT, Boolean.TRUE); context.setAttribute(HttpCoreContext.HTTP_REQ_SENT, Boolean.TRUE);
return out; return out;
} }