hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1698022 - in /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client: MainClientExec.java MinimalClientExchangeHandlerImpl.java PipeliningClientExchangeHandlerImpl.java
Date Wed, 26 Aug 2015 22:14:00 GMT
Author: ggregory
Date: Wed Aug 26 22:14:00 2015
New Revision: 1698022

URL: http://svn.apache.org/r1698022
Log:
Static fields should be accessed directly.

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MainClientExec.java
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MinimalClientExchangeHandlerImpl.java
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/PipeliningClientExchangeHandlerImpl.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MainClientExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MainClientExec.java?rev=1698022&r1=1698021&r2=1698022&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MainClientExec.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MainClientExec.java
Wed Aug 26 22:14:00 2015
@@ -286,7 +286,7 @@ class MainClientExec implements Internal
             this.log.debug("[exchange: " + state.getId() + "] Response received " + response.getStatusLine());
         }
         final HttpClientContext context = state.getLocalContext();
-        context.setAttribute(HttpClientContext.HTTP_RESPONSE, response);
+        context.setAttribute(HttpCoreContext.HTTP_RESPONSE, response);
         this.httpProcessor.process(response, context);
 
         handler.setCurrentResponse(response);
@@ -514,8 +514,8 @@ class MainClientExec implements Internal
             }
         }
 
-        localContext.setAttribute(HttpClientContext.HTTP_REQUEST, currentRequest);
-        localContext.setAttribute(HttpClientContext.HTTP_TARGET_HOST, target);
+        localContext.setAttribute(HttpCoreContext.HTTP_REQUEST, currentRequest);
+        localContext.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target);
         localContext.setAttribute(HttpClientContext.HTTP_ROUTE, route);
         this.httpProcessor.process(currentRequest, localContext);
     }

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MinimalClientExchangeHandlerImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MinimalClientExchangeHandlerImpl.java?rev=1698022&r1=1698021&r2=1698022&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MinimalClientExchangeHandlerImpl.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/MinimalClientExchangeHandlerImpl.java
Wed Aug 26 22:14:00 2015
@@ -143,8 +143,8 @@ class MinimalClientExchangeHandlerImpl<T
         setCurrentRequest(request);
         setRoute(route);
 
-        this.localContext.setAttribute(HttpClientContext.HTTP_REQUEST, request);
-        this.localContext.setAttribute(HttpClientContext.HTTP_TARGET_HOST, target);
+        this.localContext.setAttribute(HttpCoreContext.HTTP_REQUEST, request);
+        this.localContext.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target);
         this.localContext.setAttribute(HttpClientContext.HTTP_ROUTE, route);
 
         this.httpProcessor.process(request, this.localContext);
@@ -195,7 +195,7 @@ class MinimalClientExchangeHandlerImpl<T
         if (this.log.isDebugEnabled()) {
             this.log.debug("[exchange: " + getId() + "] Response received " + response.getStatusLine());
         }
-        this.localContext.setAttribute(HttpClientContext.HTTP_RESPONSE, response);
+        this.localContext.setAttribute(HttpCoreContext.HTTP_RESPONSE, response);
         this.httpProcessor.process(response, this.localContext);
 
         setCurrentResponse(response);

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/PipeliningClientExchangeHandlerImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/PipeliningClientExchangeHandlerImpl.java?rev=1698022&r1=1698021&r2=1698022&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/PipeliningClientExchangeHandlerImpl.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/PipeliningClientExchangeHandlerImpl.java
Wed Aug 26 22:14:00 2015
@@ -174,7 +174,7 @@ class PipeliningClientExchangeHandlerImp
         final HttpRoute route = new HttpRoute(this.target);
         setRoute(route);
 
-        this.localContext.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        this.localContext.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         this.localContext.setAttribute(HttpClientContext.HTTP_ROUTE, route);
 
         requestConnection();



Mime
View raw message