diff options
Diffstat (limited to 'jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java')
-rw-r--r-- | jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java index 48872a2bc8..9926325146 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnectionFactory.java @@ -16,19 +16,15 @@ // ======================================================================== // - package org.eclipse.jetty.server; - import org.eclipse.jetty.http.HttpVersion; import org.eclipse.jetty.io.Connection; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.util.annotation.Name; - -/* ------------------------------------------------------------ */ /** A Connection Factory for HTTP Connections. - * <p>Accepts connections either directly or via SSL and/or NPN chained connection factories. The accepted + * <p>Accepts connections either directly or via SSL and/or ALPN chained connection factories. The accepted * {@link HttpConnection}s are configured by a {@link HttpConfiguration} instance that is either created by * default or passed in to the constructor. */ @@ -39,13 +35,14 @@ public class HttpConnectionFactory extends AbstractConnectionFactory implements public HttpConnectionFactory() { this(new HttpConfiguration()); - setInputBufferSize(16384); } public HttpConnectionFactory(@Name("config") HttpConfiguration config) { - super(HttpVersion.HTTP_1_1.toString()); + super(HttpVersion.HTTP_1_1.asString()); _config=config; + if (config==null) + throw new IllegalArgumentException("Null HttpConfiguration"); addBean(_config); } @@ -60,5 +57,4 @@ public class HttpConnectionFactory extends AbstractConnectionFactory implements { return configure(new HttpConnection(_config, connector, endPoint), connector, endPoint); } - } |