public Http1TestServer(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.registry = new RequestHandlerRegistry<>(); this.sslContext = sslContext; }
public Http2TestServer(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.sslContext = sslContext; this.registry = new RequestHandlerRegistry<>(); }
public Http2TestClient(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.sslContext = sslContext; this.registry = new RequestHandlerRegistry<>(); }
public Http1TestServer(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.registry = new RequestHandlerRegistry<>(); this.sslContext = sslContext; }
public Http2TestClient(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.sslContext = sslContext; this.registry = new RequestHandlerRegistry<>(); }
public Http2TestServer(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException { super(ioReactorConfig); this.sslContext = sslContext; this.registry = new RequestHandlerRegistry<>(); }
public ClassicTestServer(final SSLContext sslContext, final SocketConfig socketConfig) { super(); this.sslContext = sslContext; this.socketConfig = socketConfig != null ? socketConfig : SocketConfig.DEFAULT; this.registry = new RequestHandlerRegistry<>(); this.serverRef = new AtomicReference<>(null); }
public ClassicTestServer(final SSLContext sslContext, final SocketConfig socketConfig) { super(); this.sslContext = sslContext; this.socketConfig = socketConfig != null ? socketConfig : SocketConfig.DEFAULT; this.registry = new RequestHandlerRegistry<>(); this.serverRef = new AtomicReference<>(null); }
@Before public void setUp() { handlerRegistry = new RequestHandlerRegistry<>("myhost", new Supplier<LookupRegistry<String>>() { @Override public LookupRegistry<String> get() { return new UriPatternMatcher<>(); } }); context = new BasicHttpContext(); }
public Http2MultiplexingRequester create() { final RequestHandlerRegistry<Supplier<AsyncPushConsumer>> registry = new RequestHandlerRegistry<>(uriPatternType); for (final HandlerEntry<Supplier<AsyncPushConsumer>> entry: pushConsumerList) { registry.register(entry.hostname, entry.uriPattern, entry.handler); } final ClientHttp2StreamMultiplexerFactory http2StreamHandlerFactory = new ClientHttp2StreamMultiplexerFactory( httpProcessor != null ? httpProcessor : Http2Processors.client(), new DefaultAsyncPushConsumerFactory(registry), h2Config != null ? h2Config : H2Config.DEFAULT, charCodingConfig != null ? charCodingConfig : CharCodingConfig.DEFAULT, streamListener); return new Http2MultiplexingRequester( ioReactorConfig, new IOEventHandlerFactory() { @Override public IOEventHandler createHandler(final ProtocolIOSession ioSession, final Object attachment) { return new Http2OnlyClientProtocolNegotiator(ioSession, http2StreamHandlerFactory, strictALPNHandshake); } }, ioSessionDecorator, sessionListener, DefaultAddressResolver.INSTANCE, tlsStrategy != null ? tlsStrategy : new H2ClientTlsStrategy()); }
break; final RequestHandlerRegistry<Supplier<AsyncPushConsumer>> registry = new RequestHandlerRegistry<>(uriPatternType); for (final HandlerEntry<Supplier<AsyncPushConsumer>> entry: pushConsumerList) { registry.register(entry.hostname, entry.uriPattern, entry.handler);
public HttpServer create() { final RequestHandlerRegistry<HttpRequestHandler> handlerRegistry = new RequestHandlerRegistry<>( canonicalHostName != null ? canonicalHostName : InetAddressUtils.getCanonicalLocalHostName(), uriPatternType);
public HttpServer create() { final RequestHandlerRegistry<HttpRequestHandler> handlerRegistry = new RequestHandlerRegistry<>( canonicalHostName != null ? canonicalHostName : InetAddressUtils.getCanonicalLocalHostName(), uriPatternType);
public HttpAsyncServer create() { final RequestHandlerRegistry<Supplier<AsyncServerExchangeHandler>> registry = new RequestHandlerRegistry<>( canonicalHostName != null ? canonicalHostName : InetAddressUtils.getCanonicalLocalHostName(), uriPatternType);
public HttpAsyncServer create() { final RequestHandlerRegistry<Supplier<AsyncServerExchangeHandler>> registry = new RequestHandlerRegistry<>( canonicalHostName != null ? canonicalHostName : InetAddressUtils.getCanonicalLocalHostName(), uriPatternType);
public HttpAsyncServer create() { final RequestHandlerRegistry<Supplier<AsyncServerExchangeHandler>> registry = new RequestHandlerRegistry<>( canonicalHostName != null ? canonicalHostName : InetAddressUtils.getCanonicalLocalHostName(), uriPatternType);