Class DefaultAsyncPushConsumerFactory

java.lang.Object
org.apache.hc.core5.http2.nio.support.DefaultAsyncPushConsumerFactory
All Implemented Interfaces:
org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>

public final class DefaultAsyncPushConsumerFactory extends Object implements org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>
Factory for AsyncPushConsumer instances that make use of HttpRequestMapper to dispatch the request to a particular AsyncPushConsumer for processing.
Since:
5.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultAsyncPushConsumerFactory(org.apache.hc.core5.http.HttpRequestMapper<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer>> mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hc.core5.http.nio.AsyncPushConsumer
    create(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultAsyncPushConsumerFactory

      public DefaultAsyncPushConsumerFactory(org.apache.hc.core5.http.HttpRequestMapper<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer>> mapper)
  • Method Details

    • create

      public org.apache.hc.core5.http.nio.AsyncPushConsumer create(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException
      Specified by:
      create in interface org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>
      Throws:
      org.apache.hc.core5.http.HttpException