Package | Description |
---|---|
org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
org.apache.hc.core5.http.impl.io |
Default implementation of HTTP/1.1 transport based on the classic
(blocking) I/O model.
|
org.apache.hc.core5.http.impl.routing | |
org.apache.hc.core5.http.io.support |
Support classes for the classic (blocking) I/O model.
|
org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
org.apache.hc.core5.http.protocol |
Core HTTP protocol interceptors.
|
org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
org.apache.hc.core5.http2.nio.support |
Support classes for HTTP/2 asynchronous transport.
|
Modifier and Type | Method and Description |
---|---|
ServerBootstrap |
ServerBootstrap.setRequestRouter(HttpRequestMapper<HttpRequestHandler> requestRouter)
Assigns
HttpRequestMapper instance. |
AsyncServerBootstrap |
AsyncServerBootstrap.setRequestRouter(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> requestRouter)
Assigns
HttpRequestMapper instance. |
Constructor and Description |
---|
HttpService(HttpProcessor processor,
HttpRequestMapper<HttpRequestHandler> handlerMapper,
ConnectionReuseStrategy connReuseStrategy,
HttpResponseFactory<ClassicHttpResponse> responseFactory)
Create a new HTTP service.
|
HttpService(HttpProcessor processor,
HttpRequestMapper<HttpRequestHandler> handlerMapper,
ConnectionReuseStrategy connReuseStrategy,
HttpResponseFactory<ClassicHttpResponse> responseFactory,
Http1StreamListener streamListener)
Create a new HTTP service.
|
Modifier and Type | Class and Description |
---|---|
class |
RequestRouter<T>
Request mapper that can route requests based on their properties to a specific request handler.
|
Modifier and Type | Method and Description |
---|---|
static <T> RequestRouter<T> |
RequestRouter.create(URIAuthority primaryAuthority,
UriPatternType patternType,
List<RequestRouter.Entry<T>> handlerEntries,
BiFunction<String,URIAuthority,URIAuthority> authorityResolver,
HttpRequestMapper<T> downstream) |
RequestRouter.Builder<T> |
RequestRouter.Builder.downstream(HttpRequestMapper<T> downstream)
Assigns a downstream request mapper that can be used as a fallback in case no authoritative service can be found
to handle an incoming request.
|
Constructor and Description |
---|
BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper) |
BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
TerminalServerFilter(HttpRequestMapper<HttpRequestHandler> handlerMapper,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
Constructor and Description |
---|
DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper) |
DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper,
Decorator<AsyncServerExchangeHandler> decorator) |
Modifier and Type | Class and Description |
---|---|
class |
RequestHandlerRegistry<T>
Deprecated.
Use
RequestRouter . |
Modifier and Type | Method and Description |
---|---|
H2ServerBootstrap |
H2ServerBootstrap.setRequestRouter(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> requestRouter)
Assigns
HttpRequestMapper instance. |
Constructor and Description |
---|
DefaultAsyncPushConsumerFactory(HttpRequestMapper<Supplier<AsyncPushConsumer>> mapper) |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.