Class AsyncServerFilterChainExchangeHandlerFactory
java.lang.Object
org.apache.hc.core5.http.nio.support.AsyncServerFilterChainExchangeHandlerFactory
- All Implemented Interfaces:
HandlerFactory<AsyncServerExchangeHandler>
public final class AsyncServerFilterChainExchangeHandlerFactory
extends Object
implements HandlerFactory<AsyncServerExchangeHandler>
Factory for
AsyncServerExchangeHandler
instances that delegate request processing
to a AsyncServerFilterChainElement
.- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncServerFilterChainExchangeHandlerFactory
(AsyncServerFilterChainElement filterChain, Callback<Exception> exceptionCallback) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(HttpRequest request, HttpContext context) Creates a new handler instance based on properties of an incoming request message..
-
Field Details
-
filterChain
-
exceptionCallback
-
-
Constructor Details
-
AsyncServerFilterChainExchangeHandlerFactory
public AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<Exception> exceptionCallback) -
AsyncServerFilterChainExchangeHandlerFactory
-
-
Method Details
-
create
public AsyncServerExchangeHandler create(HttpRequest request, HttpContext context) throws HttpException Description copied from interface:HandlerFactory
Creates a new handler instance based on properties of an incoming request message..- Specified by:
create
in interfaceHandlerFactory<AsyncServerExchangeHandler>
- Parameters:
request
- the incoming request head.context
- the actual execution context.- Returns:
- handler
- Throws:
HttpException
-