Class H2MultiplexingRequesterBootstrap
java.lang.Object
org.apache.hc.core5.http2.impl.nio.bootstrap.H2MultiplexingRequesterBootstrap
H2MultiplexingRequester bootstrap.- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CharCodingConfigprivate FrameFactoryprivate H2Configprivate HttpProcessorprivate IOReactorConfigprivate final List<RequestRouter.Entry<Supplier<AsyncPushConsumer>>> private IOSessionListenerprivate H2StreamListenerprivate booleanprivate IOReactorMetricsListenerprivate TlsStrategyprivate UriPatternType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()register(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumerSupplieras a handler for URIs matching the given host and the pattern.register(String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumerSupplieras a default handler for URIs matching the given pattern.registerVirtual(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier) Deprecated.setCharCodingConfig(CharCodingConfig charCodingConfig) Sets message char coding.setExceptionCallback(Callback<Exception> exceptionCallback) setH2Config(H2Config h2Config) Sets HTTP/2 protocol parameterssetHttpProcessor(HttpProcessor httpProcessor) SetsHttpProcessorinstance.setIOReactorConfig(IOReactorConfig ioReactorConfig) Sets I/O reactor configuration.setIOReactorMetricsListener(IOReactorMetricsListener threadPoolListener) SetsIOReactorMetricsListenerinstance.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator) setIOSessionListener(IOSessionListener sessionListener) SetsIOSessionListenerinstance.setStreamListener(FrameFactory frameFactory) SetsFrameFactoryinstance.setStreamListener(H2StreamListener streamListener) SetsH2StreamListenerinstance.setStrictALPNHandshake(boolean strictALPNHandshake) setTlsStrategy(TlsStrategy tlsStrategy) SetsTlsStrategyinstance.setUriPatternType(UriPatternType uriPatternType) SetsUriPatternTypefor handler registration.
-
Field Details
-
routeEntries
-
uriPatternType
-
ioReactorConfig
-
httpProcessor
-
charCodingConfig
-
h2Config
-
tlsStrategy
-
strictALPNHandshake
private boolean strictALPNHandshake -
ioSessionDecorator
-
exceptionCallback
-
sessionListener
-
streamListener
-
frameFactory
-
threadPoolListener
-
-
Constructor Details
-
H2MultiplexingRequesterBootstrap
private H2MultiplexingRequesterBootstrap()
-
-
Method Details
-
bootstrap
-
setIOReactorConfig
Sets I/O reactor configuration.- Returns:
- this instance.
-
setHttpProcessor
SetsHttpProcessorinstance.- Returns:
- this instance.
-
setH2Config
Sets HTTP/2 protocol parameters- Returns:
- this instance.
-
setCharCodingConfig
public final H2MultiplexingRequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig) Sets message char coding.- Returns:
- this instance.
-
setTlsStrategy
SetsTlsStrategyinstance.- Returns:
- this instance.
-
setStrictALPNHandshake
-
setIOSessionDecorator
public final H2MultiplexingRequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator) - Returns:
- this instance.
-
setExceptionCallback
public final H2MultiplexingRequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback) - Returns:
- this instance.
-
setIOSessionListener
public final H2MultiplexingRequesterBootstrap setIOSessionListener(IOSessionListener sessionListener) SetsIOSessionListenerinstance.- Returns:
- this instance.
-
setIOReactorMetricsListener
public final H2MultiplexingRequesterBootstrap setIOReactorMetricsListener(IOReactorMetricsListener threadPoolListener) SetsIOReactorMetricsListenerinstance.- Returns:
- this instance.
- Since:
- 5.4
-
setStreamListener
SetsH2StreamListenerinstance.- Returns:
- this instance.
-
setStreamListener
SetsFrameFactoryinstance.- Returns:
- this instance.
- Since:
- 5.4
-
setUriPatternType
SetsUriPatternTypefor handler registration.- Returns:
- this instance.
-
register
public final H2MultiplexingRequesterBootstrap register(String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumerSupplieras a default handler for URIs matching the given pattern.- Parameters:
uriPattern- the pattern to register the handler for.supplier- the handler supplier.- Returns:
- this instance.
-
register
public final H2MultiplexingRequesterBootstrap register(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumerSupplieras a handler for URIs matching the given host and the pattern.- Parameters:
hostname- the host nameuriPattern- the pattern to register the handler for.supplier- the handler supplier.- Returns:
- this instance.
- Since:
- 5.3
-
registerVirtual
@Deprecated public final H2MultiplexingRequesterBootstrap registerVirtual(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier) Deprecated.- Returns:
- this instance.
-
create
-
register(String, String, Supplier).