Class DefaultAsyncPushConsumerFactory

  • All Implemented Interfaces:
    org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>

    public final class DefaultAsyncPushConsumerFactory
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      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 java.lang.Object

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

      • DefaultAsyncPushConsumerFactory

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

      • 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