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
ConstructorsConstructorDescriptionDefaultAsyncPushConsumerFactory(org.apache.hc.core5.http.HttpRequestMapper<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer>> mapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.nio.AsyncPushConsumercreate(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
-
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:
createin interfaceorg.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>- Throws:
org.apache.hc.core5.http.HttpException
-