diff options
author | Simone Bordet | 2015-12-18 08:44:26 +0000 |
---|---|---|
committer | Simone Bordet | 2015-12-18 14:56:31 +0000 |
commit | 4eef2a347fc28f70b8fae1a8b4ba34669eeaa63c (patch) | |
tree | 9242523e81ca3b92cb2e27315c6aaf841e52a169 /jetty-fcgi | |
parent | cdfa515ca38d51f3d3c9fcb34aaad6550ec29923 (diff) | |
download | org.eclipse.jetty.project-4eef2a347fc28f70b8fae1a8b4ba34669eeaa63c.tar.gz org.eclipse.jetty.project-4eef2a347fc28f70b8fae1a8b4ba34669eeaa63c.tar.xz org.eclipse.jetty.project-4eef2a347fc28f70b8fae1a8b4ba34669eeaa63c.zip |
Added factory method to create the HttpChannel.
Diffstat (limited to 'jetty-fcgi')
-rw-r--r-- | jetty-fcgi/fcgi-client/src/main/java/org/eclipse/jetty/fcgi/client/http/HttpConnectionOverFCGI.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/jetty-fcgi/fcgi-client/src/main/java/org/eclipse/jetty/fcgi/client/http/HttpConnectionOverFCGI.java b/jetty-fcgi/fcgi-client/src/main/java/org/eclipse/jetty/fcgi/client/http/HttpConnectionOverFCGI.java index 0d71cfd3ed..18aaa22d3d 100644 --- a/jetty-fcgi/fcgi-client/src/main/java/org/eclipse/jetty/fcgi/client/http/HttpConnectionOverFCGI.java +++ b/jetty-fcgi/fcgi-client/src/main/java/org/eclipse/jetty/fcgi/client/http/HttpConnectionOverFCGI.java @@ -82,6 +82,11 @@ public class HttpConnectionOverFCGI extends AbstractConnection implements Connec return destination; } + protected Flusher getFlusher() + { + return flusher; + } + @Override public void send(Request request, Response.CompleteListener listener) { @@ -270,6 +275,11 @@ public class HttpConnectionOverFCGI extends AbstractConnection implements Connec } } + protected HttpChannelOverFCGI newHttpChannel(int id, Request request) + { + return new HttpChannelOverFCGI(this, getFlusher(), id, request.getIdleTimeout()); + } + @Override public String toString() { @@ -295,7 +305,7 @@ public class HttpConnectionOverFCGI extends AbstractConnection implements Connec // FCGI may be multiplexed, so create one channel for each request. int id = acquireRequest(); - HttpChannelOverFCGI channel = new HttpChannelOverFCGI(HttpConnectionOverFCGI.this, flusher, id, request.getIdleTimeout()); + HttpChannelOverFCGI channel = newHttpChannel(id, request); channels.put(id, channel); if (channel.associate(exchange)) channel.send(); |