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 H2Configprivate HttpProcessorprivate IOReactorConfigprivate final List<HandlerEntry<Supplier<AsyncPushConsumer>>> private IOSessionListenerprivate H2StreamListenerprivate booleanprivate TlsStrategyprivate UriPatternType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()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) Registers the givenAsyncPushConsumerSupplieras a handler for URIs matching the given host and the pattern.setCharCodingConfig(CharCodingConfig charCodingConfig) Sets message char coding.setExceptionCallback(Callback<Exception> exceptionCallback) setH2Config(H2Config h2Config) Sets HTTP/2 protocol parameterssetHttpProcessor(HttpProcessor httpProcessor) AssignsHttpProcessorinstance.setIOReactorConfig(IOReactorConfig ioReactorConfig) Sets I/O reactor configuration.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator) setIOSessionListener(IOSessionListener sessionListener) AssignsIOSessionListenerinstance.setStreamListener(H2StreamListener streamListener) AssignsH2StreamListenerinstance.setStrictALPNHandshake(boolean strictALPNHandshake) setTlsStrategy(TlsStrategy tlsStrategy) AssignsTlsStrategyinstance.setUriPatternType(UriPatternType uriPatternType) AssignsUriPatternTypefor handler registration.
-
Field Details
-
pushConsumerList
-
uriPatternType
-
ioReactorConfig
-
httpProcessor
-
charCodingConfig
-
h2Config
-
tlsStrategy
-
strictALPNHandshake
private boolean strictALPNHandshake -
ioSessionDecorator
-
exceptionCallback
-
sessionListener
-
streamListener
-
-
Constructor Details
-
H2MultiplexingRequesterBootstrap
private H2MultiplexingRequesterBootstrap()
-
-
Method Details
-
bootstrap
-
setIOReactorConfig
Sets I/O reactor configuration. -
setHttpProcessor
AssignsHttpProcessorinstance. -
setH2Config
Sets HTTP/2 protocol parameters -
setCharCodingConfig
public final H2MultiplexingRequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig) Sets message char coding. -
setTlsStrategy
AssignsTlsStrategyinstance. -
setStrictALPNHandshake
-
setIOSessionDecorator
public final H2MultiplexingRequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator) -
setExceptionCallback
public final H2MultiplexingRequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback) -
setIOSessionListener
public final H2MultiplexingRequesterBootstrap setIOSessionListener(IOSessionListener sessionListener) AssignsIOSessionListenerinstance. -
setStreamListener
AssignsH2StreamListenerinstance. -
setUriPatternType
AssignsUriPatternTypefor handler registration. -
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.
-
registerVirtual
public final H2MultiplexingRequesterBootstrap registerVirtual(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.
-
create
-