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;
}
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;
}
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();
}
Aggregations