You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/05/24 07:13:34 UTC
[1/2] httpcomponents-core git commit: [HTTPCORE-470] Add a
org.apache.http.nio.protocol.NullRequestHandler singleton
Repository: httpcomponents-core
Updated Branches:
refs/heads/dev/4.4.x/HTTPCORE-470 d292645fc -> e87f59632
[HTTPCORE-470] Add a org.apache.http.nio.protocol.NullRequestHandler singleton
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/d3901eb9
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/d3901eb9
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/d3901eb9
Branch: refs/heads/dev/4.4.x/HTTPCORE-470
Commit: d3901eb9a0928f023a147fdd4cf801881e219d4d
Parents: 4bbd024
Author: Gary Gregory <gg...@apache.org>
Authored: Wed May 24 00:12:29 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed May 24 00:12:29 2017 -0700
----------------------------------------------------------------------
.../java/org/apache/http/nio/protocol/HttpAsyncService.java | 2 +-
.../java/org/apache/http/nio/protocol/NullRequestHandler.java | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/d3901eb9/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
index 789b304..cc8dc37 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
@@ -761,7 +761,7 @@ public class HttpAsyncService implements NHttpServerEventHandler {
handler = (HttpAsyncRequestHandler<Object>) this.handlerMapper.lookup(request);
}
if (handler == null) {
- handler = new NullRequestHandler();
+ handler = NullRequestHandler.INSTANCE;
}
return handler;
}
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/d3901eb9/httpcore-nio/src/main/java/org/apache/http/nio/protocol/NullRequestHandler.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/NullRequestHandler.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/NullRequestHandler.java
index 8d465e0..7dad232 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/NullRequestHandler.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/NullRequestHandler.java
@@ -36,6 +36,11 @@ import org.apache.http.protocol.HttpContext;
class NullRequestHandler implements HttpAsyncRequestHandler<Object> {
+ /**
+ * @since 4.4.7
+ */
+ public static final NullRequestHandler INSTANCE = new NullRequestHandler();
+
public NullRequestHandler() {
super();
}
[2/2] httpcomponents-core git commit: Merge branch
'dev/4.4.x/HTTPCORE-470' of
https://git-wip-us.apache.org/repos/asf/httpcomponents-core.git into
dev/4.4.x/HTTPCORE-470
Posted by gg...@apache.org.
Merge branch 'dev/4.4.x/HTTPCORE-470' of https://git-wip-us.apache.org/repos/asf/httpcomponents-core.git into dev/4.4.x/HTTPCORE-470
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/e87f5963
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/e87f5963
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/e87f5963
Branch: refs/heads/dev/4.4.x/HTTPCORE-470
Commit: e87f596324018e1c708678fe61ff9c5ca2569285
Parents: d3901eb d292645
Author: Gary Gregory <gg...@apache.org>
Authored: Wed May 24 00:13:03 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed May 24 00:13:03 2017 -0700
----------------------------------------------------------------------
----------------------------------------------------------------------