Search in sources :

Example 11 with SelectChannelConnector

use of org.mortbay.jetty.nio.SelectChannelConnector in project maven-plugins by apache.

the class SiteRunMojo method getDefaultConnector.

private Connector getDefaultConnector() {
    Connector connector = new SelectChannelConnector();
    connector.setPort(port);
    connector.setMaxIdleTime(MAX_IDLE_TIME);
    return connector;
}
Also used : Connector(org.mortbay.jetty.Connector) SelectChannelConnector(org.mortbay.jetty.nio.SelectChannelConnector) SelectChannelConnector(org.mortbay.jetty.nio.SelectChannelConnector)

Example 12 with SelectChannelConnector

use of org.mortbay.jetty.nio.SelectChannelConnector in project maven-plugins by apache.

the class ProjectInfoReportUtilsTest method getDefaultConnector.

private Connector getDefaultConnector() {
    Connector connector = new SelectChannelConnector();
    connector.setMaxIdleTime(MAX_IDLE_TIME);
    return connector;
}
Also used : Connector(org.mortbay.jetty.Connector) SelectChannelConnector(org.mortbay.jetty.nio.SelectChannelConnector) SslSocketConnector(org.mortbay.jetty.security.SslSocketConnector) SelectChannelConnector(org.mortbay.jetty.nio.SelectChannelConnector)

Example 13 with SelectChannelConnector

use of org.mortbay.jetty.nio.SelectChannelConnector in project nutch by apache.

the class TestProtocolHttp method startServer.

/**
 * Starts the Jetty server at a specified port and redirection parameter.
 *
 * @param portno
 *          Port number.
 * @param redirection
 *          whether redirection
 */
private void startServer(int portno, boolean redirection) throws Exception {
    port = portno;
    setUp(redirection);
    SelectChannelConnector connector = new SelectChannelConnector();
    connector.setHost("127.0.0.1");
    connector.setPort(port);
    server.addConnector(connector);
    server.start();
}
Also used : SelectChannelConnector(org.mortbay.jetty.nio.SelectChannelConnector)

Aggregations

SelectChannelConnector (org.mortbay.jetty.nio.SelectChannelConnector)13 Server (org.mortbay.jetty.Server)7 Connector (org.mortbay.jetty.Connector)5 ServletHolder (org.mortbay.jetty.servlet.ServletHolder)3 IOException (java.io.IOException)2 SslSocketConnector (org.mortbay.jetty.security.SslSocketConnector)2 Context (org.mortbay.jetty.servlet.Context)2 WebAppContext (org.mortbay.jetty.webapp.WebAppContext)2 QueuedThreadPool (org.mortbay.thread.QueuedThreadPool)2 Random (java.util.Random)1 ServletContext (javax.servlet.ServletContext)1 ServletException (javax.servlet.ServletException)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 Configuration (org.apache.hadoop.conf.Configuration)1 Options (org.apache.openejb.loader.Options)1 ServiceException (org.apache.openejb.server.ServiceException)1 ThriftServletCollector (org.honu.datacollection.collector.servlet.ThriftServletCollector)1 AbstractConnector (org.mortbay.jetty.AbstractConnector)1 Handler (org.mortbay.jetty.Handler)1