Uses of Class
org.apache.hc.core5.http2.impl.nio.bootstrap.H2ServerBootstrap
Packages that use H2ServerBootstrap
Package
Description
HTTP/2 capable requester and server bootstrap.
-
Uses of H2ServerBootstrap in org.apache.hc.core5.http2.impl.nio.bootstrap
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap that return H2ServerBootstrapModifier and TypeMethodDescriptionfinal H2ServerBootstrapH2ServerBootstrap.addFilterAfter(String existing, String name, org.apache.hc.core5.http.nio.AsyncFilterHandler filterHandler) Adds the filter after the filter with the given name.final H2ServerBootstrapH2ServerBootstrap.addFilterBefore(String existing, String name, org.apache.hc.core5.http.nio.AsyncFilterHandler filterHandler) Adds the filter before the filter with the given name.final H2ServerBootstrapH2ServerBootstrap.addFilterFirst(String name, org.apache.hc.core5.http.nio.AsyncFilterHandler filterHandler) Add an filter to the head of the processing list.final H2ServerBootstrapH2ServerBootstrap.addFilterLast(String name, org.apache.hc.core5.http.nio.AsyncFilterHandler filterHandler) Add an filter to the tail of the processing list.static H2ServerBootstrapH2ServerBootstrap.bootstrap()final H2ServerBootstrapH2ServerBootstrap.register(String hostname, String uriPattern, org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncServerExchangeHandler> supplier) Registers the givenAsyncServerExchangeHandlerSupplieras a handler for URIs matching the given host and the pattern.final <T> H2ServerBootstrapH2ServerBootstrap.register(String hostname, String uriPattern, org.apache.hc.core5.http.nio.AsyncServerRequestHandler<T> requestHandler) Registers the givenAsyncServerRequestHandleras a handler for URIs matching the given host and the pattern.final H2ServerBootstrapH2ServerBootstrap.register(String uriPattern, org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncServerExchangeHandler> supplier) Registers the givenAsyncServerExchangeHandlerSupplieras a default handler for URIs matching the given pattern.final <T> H2ServerBootstrapH2ServerBootstrap.register(String uriPattern, org.apache.hc.core5.http.nio.AsyncServerRequestHandler<T> requestHandler) Registers the givenAsyncServerRequestHandleras a default handler for URIs matching the given pattern.final H2ServerBootstrapH2ServerBootstrap.registerVirtual(String hostname, String uriPattern, org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncServerExchangeHandler> supplier) Deprecated.final <T> H2ServerBootstrapH2ServerBootstrap.registerVirtual(String hostname, String uriPattern, org.apache.hc.core5.http.nio.AsyncServerRequestHandler<T> requestHandler) Deprecated.final H2ServerBootstrapH2ServerBootstrap.replaceFilter(String existing, org.apache.hc.core5.http.nio.AsyncFilterHandler filterHandler) Replace an existing filter with the given name with new filter.final H2ServerBootstrapH2ServerBootstrap.setCanonicalHostName(String canonicalHostName) Sets canonical name (fully qualified domain name) of the server.final H2ServerBootstrapH2ServerBootstrap.setCharset(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) Sets message char coding.final H2ServerBootstrapH2ServerBootstrap.setExceptionCallback(org.apache.hc.core5.function.Callback<Exception> exceptionCallback) SetsExceptionCallbackinstance.final H2ServerBootstrapH2ServerBootstrap.setFrameFactory(FrameFactory frameFactory) SetsFrameFactoryinstance.final H2ServerBootstrapH2ServerBootstrap.setH2Config(H2Config h2Config) Sets HTTP/2 protocol parametersfinal H2ServerBootstrapH2ServerBootstrap.setHandshakeTimeout(org.apache.hc.core5.util.Timeout handshakeTimeout) final H2ServerBootstrapH2ServerBootstrap.setHttp1Config(org.apache.hc.core5.http.config.Http1Config http1Config) Sets HTTP/1.1 protocol parametersfinal H2ServerBootstrapH2ServerBootstrap.setHttpProcessor(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor) SetsHttpProcessorinstance.final H2ServerBootstrapH2ServerBootstrap.setIOReactorConfig(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig) Sets I/O reactor configuration.final H2ServerBootstrapH2ServerBootstrap.setIOReactorMetricsListener(org.apache.hc.core5.reactor.IOReactorMetricsListener threadPoolListener) SetsIOReactorMetricsListenerinstance.final H2ServerBootstrapH2ServerBootstrap.setIOSessionDecorator(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.reactor.IOSession> ioSessionDecorator) SetsIOSessionDecoratorinstance.final H2ServerBootstrapH2ServerBootstrap.setIOSessionListener(org.apache.hc.core5.reactor.IOSessionListener sessionListener) SetsIOSessionListenerinstance.final H2ServerBootstrapH2ServerBootstrap.setLookupRegistry(org.apache.hc.core5.http.protocol.LookupRegistry<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncServerExchangeHandler>> lookupRegistry) Deprecated.UseRequestRouter.final H2ServerBootstrapH2ServerBootstrap.setRequestRouter(org.apache.hc.core5.http.HttpRequestMapper<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncServerExchangeHandler>> requestRouter) SetsHttpRequestMapperinstance.final H2ServerBootstrapH2ServerBootstrap.setStreamListener(org.apache.hc.core5.http.impl.Http1StreamListener http1StreamListener) SetsHttp1StreamListenerinstance.final H2ServerBootstrapH2ServerBootstrap.setStreamListener(H2StreamListener h2StreamListener) SetsH2StreamListenerinstance.final H2ServerBootstrapH2ServerBootstrap.setTlsStrategy(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy) SetsTlsStrategyinstance.final H2ServerBootstrapH2ServerBootstrap.setVersionPolicy(HttpVersionPolicy versionPolicy) Sets HTTP protocol version policy
H2ServerBootstrap.register(String, String, Supplier).