Top Description Fields Constructors Methods
org.apache.hc.core5.http.nio.support

public final Class DefaultAsyncResponseExchangeHandlerFactory

extends Object
implements HandlerFactory<AsyncServerExchangeHandler>
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.nio.HandlerFactory
Imports
org.apache.hc.core5.function.Decorator, .Supplier, org.apache.hc.core5.http.HttpException, .HttpRequest, .HttpRequestMapper, .HttpStatus, .MisdirectedRequestException, org.apache.hc.core5.http.nio.AsyncServerExchangeHandler, .HandlerFactory, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args

Factory for AsyncServerExchangeHandler instances that make use of HttpRequestMapper to dispatch the request to a particular AsyncServerExchangeHandler for processing.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final Decorator<AsyncServerExchangeHandler>
private final HttpRequestMapper<Supplier<AsyncServerExchangeHandler>>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public AsyncServerExchangeHandler
create(final HttpRequest
the incoming request head.
request
,
final HttpContext
the actual execution context.
context
)

Implements org.apache.hc.core5.http.nio.HandlerFactory.create.

Creates a new handler instance based on properties of an incoming request message..
private AsyncServerExchangeHandler
createHandler(final HttpRequest request, final HttpContext context)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

decoratorback to summary
private final Decorator<AsyncServerExchangeHandler> decorator
mapperback to summary
private final HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper

Constructor Detail

DefaultAsyncResponseExchangeHandlerFactoryback to summary
public DefaultAsyncResponseExchangeHandlerFactory(final HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper, final Decorator<AsyncServerExchangeHandler> decorator)
DefaultAsyncResponseExchangeHandlerFactoryback to summary
public DefaultAsyncResponseExchangeHandlerFactory(final HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper)

Method Detail

createback to summary
public AsyncServerExchangeHandler create(final HttpRequest request, final HttpContext context) throws HttpException

Implements org.apache.hc.core5.http.nio.HandlerFactory.create.

Doc from org.apache.hc.core5.http.nio.HandlerFactory.create.

Creates a new handler instance based on properties of an incoming request message..

Parameters
request:HttpRequest

the incoming request head.

context:HttpContext

the actual execution context.

Returns:AsyncServerExchangeHandler

handler

Annotations
@Override
createHandlerback to summary
private AsyncServerExchangeHandler createHandler(final HttpRequest request, final HttpContext context) throws HttpException