Package org.apache.hc.core5.http.nio
Interface HandlerFactory<T extends ResourceHolder>
- Type Parameters:
T
- handler type
- All Known Implementing Classes:
AsyncServerFilterChainExchangeHandlerFactory
,DefaultAsyncPushConsumerFactory
,DefaultAsyncResponseExchangeHandlerFactory
public interface HandlerFactory<T extends ResourceHolder>
Abstract handler factory.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(HttpRequest request, HttpContext context) Creates a new handler instance based on properties of an incoming request message..
-
Method Details
-
create
Creates a new handler instance based on properties of an incoming request message..- Parameters:
request
- the incoming request head.context
- the actual execution context.- Returns:
- handler
- Throws:
HttpException
-