camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [12/19] camel git commit: CAMEL-8462 Removed the field of request from HttpServerChannelHandler
Date Mon, 09 Mar 2015 10:39:34 GMT
CAMEL-8462 Removed the field of request from HttpServerChannelHandler


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/92182c3b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/92182c3b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/92182c3b

Branch: refs/heads/camel-2.14.x
Commit: 92182c3bdada7fc3ad3d740cfbb8f2821fbd1527
Parents: f7c2e66
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Mon Mar 9 18:06:32 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Mon Mar 9 18:38:08 2015 +0800

----------------------------------------------------------------------
 .../netty4/http/handlers/HttpServerChannelHandler.java         | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/92182c3b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/handlers/HttpServerChannelHandler.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/handlers/HttpServerChannelHandler.java
b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/handlers/HttpServerChannelHandler.java
index b459057..18770b1 100644
--- a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/handlers/HttpServerChannelHandler.java
+++ b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/handlers/HttpServerChannelHandler.java
@@ -61,7 +61,6 @@ public class HttpServerChannelHandler extends ServerChannelHandler {
     // use NettyHttpConsumer as logger to make it easier to read the logs as this is part
of the consumer
     private static final Logger LOG = LoggerFactory.getLogger(NettyHttpConsumer.class);
     private final NettyHttpConsumer consumer;
-    private HttpRequest request;
 
     public HttpServerChannelHandler(NettyHttpConsumer consumer) {
         super(consumer);
@@ -74,8 +73,7 @@ public class HttpServerChannelHandler extends ServerChannelHandler {
 
     @Override
     protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
-        // store request, as this channel handler is created per pipeline
-        request = (HttpRequest) msg;
+        HttpRequest request = (HttpRequest) msg;
 
         LOG.debug("Message received: {}", request);
 
@@ -281,7 +279,7 @@ public class HttpServerChannelHandler extends ServerChannelHandler {
 
     @Override
     public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
{
-        
+
         // only close if we are still allowed to run
         if (consumer.isRunAllowed()) {
 


Mime
View raw message