public class H2MultiplexingRequesterBootstrap extends Object
H2MultiplexingRequester
bootstrap.public static H2MultiplexingRequesterBootstrap bootstrap()
public final H2MultiplexingRequesterBootstrap setIOReactorConfig(IOReactorConfig ioReactorConfig)
public final H2MultiplexingRequesterBootstrap setHttpProcessor(HttpProcessor httpProcessor)
HttpProcessor
instance.public final H2MultiplexingRequesterBootstrap setH2Config(H2Config h2Config)
public final H2MultiplexingRequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig)
public final H2MultiplexingRequesterBootstrap setTlsStrategy(TlsStrategy tlsStrategy)
TlsStrategy
instance.public final H2MultiplexingRequesterBootstrap setStrictALPNHandshake(boolean strictALPNHandshake)
public final H2MultiplexingRequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
public final H2MultiplexingRequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback)
public final H2MultiplexingRequesterBootstrap setIOSessionListener(IOSessionListener sessionListener)
IOSessionListener
instance.public final H2MultiplexingRequesterBootstrap setStreamListener(H2StreamListener streamListener)
H2StreamListener
instance.public final H2MultiplexingRequesterBootstrap setUriPatternType(UriPatternType uriPatternType)
UriPatternType
for handler registration.public final H2MultiplexingRequesterBootstrap register(String uriPattern, Supplier<AsyncPushConsumer> supplier)
AsyncPushConsumer
Supplier
as a default handler for URIs
matching the given pattern.uriPattern
- the pattern to register the handler for.supplier
- the handler supplier.public final H2MultiplexingRequesterBootstrap registerVirtual(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier)
AsyncPushConsumer
Supplier
as a handler for URIs
matching the given host and the pattern.hostname
- the host nameuriPattern
- the pattern to register the handler for.supplier
- the handler supplier.public H2MultiplexingRequester create()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.