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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `create(HttpRequest request, HttpContext context)` Creates a new handler instance based on properties of an incoming request message..

- - ### Method Detail

    - #### create

          T create(HttpRequest request,
                 HttpContext context)
                                          throws HttpException

      Creates a new handler instance based on properties of an incoming request message..
      Parameters:
        `request` - the incoming reqquest head.
        `context` - the actual execution context.
      Returns:
        handler
      Throws:
        `HttpException`

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.