diff options
author | Greg Wilkins | 2013-09-02 02:24:51 +0000 |
---|---|---|
committer | Greg Wilkins | 2013-09-02 02:24:51 +0000 |
commit | 317a3f27dfdc4ac3af0e4d4b82e3d5acb664a3cc (patch) | |
tree | 70fde7ffbfc713955587ccd6ae8811479a8fb4c5 /jetty-server/src/main/java | |
parent | d51268977b614581bd954852c8505fcad3fee877 (diff) | |
download | org.eclipse.jetty.project-317a3f27dfdc4ac3af0e4d4b82e3d5acb664a3cc.tar.gz org.eclipse.jetty.project-317a3f27dfdc4ac3af0e4d4b82e3d5acb664a3cc.tar.xz org.eclipse.jetty.project-317a3f27dfdc4ac3af0e4d4b82e3d5acb664a3cc.zip |
416321 improved test harnesses
Diffstat (limited to 'jetty-server/src/main/java')
-rw-r--r-- | jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java index 8e815d9acd..889e2ffefa 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java @@ -144,6 +144,26 @@ public class ServerConnector extends AbstractNetworkConnector } /* ------------------------------------------------------------ */ + /** HTTP Server Connection. + * <p>Construct a ServerConnector with a private instance of {@link HttpConnectionFactory} as the primary protocol</p>. + * @param server The {@link Server} this connector will accept connection for. + * @param sslContextFactory If non null, then a {@link SslConnectionFactory} is instantiated and prepended to the + * list of HTTP Connection Factory. + * @param acceptors + * the number of acceptor threads to use, or 0 for a default value. Acceptors accept new TCP/IP connections. + * @param selectors + * the number of selector threads, or 0 for a default value. Selectors notice and schedule established connection that can make IO progress. + */ + public ServerConnector( + @Name("server") Server server, + @Name("acceptors") int acceptors, + @Name("selectors") int selectors, + @Name("sslContextFactory") SslContextFactory sslContextFactory) + { + this(server,null,null,null,acceptors,selectors,AbstractConnectionFactory.getFactories(sslContextFactory,new HttpConnectionFactory())); + } + + /* ------------------------------------------------------------ */ /** Generic SSL Server Connection. * @param server The {@link Server} this connector will accept connection for. * @param sslContextFactory If non null, then a {@link SslConnectionFactory} is instantiated and prepended to the |