Class H2MultiplexingRequesterBootstrap
java.lang.Object
org.apache.hc.core5.http2.impl.nio.bootstrap.H2MultiplexingRequesterBootstrap
H2MultiplexingRequester
bootstrap.- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CharCodingConfig
private H2Config
private HttpProcessor
private IOReactorConfig
private final List
<HandlerEntry<Supplier<AsyncPushConsumer>>> private IOSessionListener
private H2StreamListener
private boolean
private TlsStrategy
private UriPatternType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
register
(String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumer
Supplier
as a default handler for URIs matching the given pattern.registerVirtual
(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumer
Supplier
as 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) AssignsHttpProcessor
instance.setIOReactorConfig
(IOReactorConfig ioReactorConfig) Sets I/O reactor configuration.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) setIOSessionListener
(IOSessionListener sessionListener) AssignsIOSessionListener
instance.setStreamListener
(H2StreamListener streamListener) AssignsH2StreamListener
instance.setStrictALPNHandshake
(boolean strictALPNHandshake) setTlsStrategy
(TlsStrategy tlsStrategy) AssignsTlsStrategy
instance.setUriPatternType
(UriPatternType uriPatternType) AssignsUriPatternType
for 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
AssignsHttpProcessor
instance. -
setH2Config
Sets HTTP/2 protocol parameters -
setCharCodingConfig
public final H2MultiplexingRequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig) Sets message char coding. -
setTlsStrategy
AssignsTlsStrategy
instance. -
setStrictALPNHandshake
-
setIOSessionDecorator
public final H2MultiplexingRequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator) -
setExceptionCallback
public final H2MultiplexingRequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback) -
setIOSessionListener
public final H2MultiplexingRequesterBootstrap setIOSessionListener(IOSessionListener sessionListener) AssignsIOSessionListener
instance. -
setStreamListener
AssignsH2StreamListener
instance. -
setUriPatternType
AssignsUriPatternType
for handler registration. -
register
public final H2MultiplexingRequesterBootstrap register(String uriPattern, Supplier<AsyncPushConsumer> supplier) Registers the givenAsyncPushConsumer
Supplier
as 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 givenAsyncPushConsumer
Supplier
as 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
-