Class AsyncServerFilterChainExchangeHandlerFactory
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncServerFilterChainExchangeHandlerFactory
-
- All Implemented Interfaces:
HandlerFactory<AsyncServerExchangeHandler>
public final class AsyncServerFilterChainExchangeHandlerFactory extends java.lang.Object implements HandlerFactory<AsyncServerExchangeHandler>
Factory forAsyncServerExchangeHandler
instances that delegate request processing to aAsyncServerFilterChainElement
.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private Callback<java.lang.Exception>
exceptionCallback
private AsyncServerFilterChainElement
filterChain
-
Constructor Summary
Constructors Constructor Description AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain)
AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<java.lang.Exception> exceptionCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncServerExchangeHandler
create(HttpRequest request, HttpContext context)
Creates a new handler instance based on properties of an incoming request message..
-
-
-
Field Detail
-
filterChain
private final AsyncServerFilterChainElement filterChain
-
exceptionCallback
private final Callback<java.lang.Exception> exceptionCallback
-
-
Constructor Detail
-
AsyncServerFilterChainExchangeHandlerFactory
public AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<java.lang.Exception> exceptionCallback)
-
AsyncServerFilterChainExchangeHandlerFactory
public AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain)
-
-
Method Detail
-
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
-
-