use of org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory in project jetty.project by eclipse.
the class AbstractTest method start.
protected void start(ServerSessionListener listener) throws Exception {
prepareServer(new RawHTTP2ServerConnectionFactory(new HttpConfiguration(), listener));
server.start();
prepareClient();
client.start();
}
use of org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory in project jetty.project by eclipse.
the class RawHTTP2ProxyTest method startServer.
private Server startServer(String name, ServerSessionListener listener) throws Exception {
QueuedThreadPool serverExecutor = new QueuedThreadPool();
serverExecutor.setName(name);
Server server = new Server(serverExecutor);
RawHTTP2ServerConnectionFactory connectionFactory = new RawHTTP2ServerConnectionFactory(new HttpConfiguration(), listener);
ServerConnector connector = new ServerConnector(server, 1, 1, connectionFactory);
server.addConnector(connector);
server.setAttribute("connector", connector);
servers.add(server);
server.start();
return server;
}
use of org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory in project jetty.project by eclipse.
the class FlowControlStalledTest method start.
protected void start(FlowControlStrategy.Factory flowControlFactory, ServerSessionListener listener) throws Exception {
QueuedThreadPool serverExecutor = new QueuedThreadPool();
serverExecutor.setName("server");
server = new Server(serverExecutor);
RawHTTP2ServerConnectionFactory connectionFactory = new RawHTTP2ServerConnectionFactory(new HttpConfiguration(), listener);
connectionFactory.setFlowControlStrategyFactory(flowControlFactory);
connector = new ServerConnector(server, connectionFactory);
server.addConnector(connector);
server.start();
client = new HTTP2Client();
QueuedThreadPool clientExecutor = new QueuedThreadPool();
clientExecutor.setName("client");
client.setExecutor(clientExecutor);
client.setFlowControlStrategyFactory(flowControlFactory);
client.start();
}
use of org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory in project jetty.project by eclipse.
the class FlowControlStrategyTest method start.
protected void start(ServerSessionListener listener) throws Exception {
QueuedThreadPool serverExecutor = new QueuedThreadPool();
serverExecutor.setName("server");
server = new Server(serverExecutor);
RawHTTP2ServerConnectionFactory connectionFactory = new RawHTTP2ServerConnectionFactory(new HttpConfiguration(), listener);
connectionFactory.setFlowControlStrategyFactory(FlowControlStrategyTest.this::newFlowControlStrategy);
connector = new ServerConnector(server, connectionFactory);
server.addConnector(connector);
server.start();
client = new HTTP2Client();
QueuedThreadPool clientExecutor = new QueuedThreadPool();
clientExecutor.setName("client");
client.setExecutor(clientExecutor);
client.setFlowControlStrategyFactory(FlowControlStrategyTest.this::newFlowControlStrategy);
client.start();
}
use of org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory in project jetty.project by eclipse.
the class AbstractTest method start.
protected void start(ServerSessionListener listener) throws Exception {
prepareServer(new RawHTTP2ServerConnectionFactory(new HttpConfiguration(), listener));
server.start();
prepareClient();
client.start();
}
Aggregations