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 java.lang.Object implements org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>Factory forAsyncPushConsumerinstances that make use ofHttpRequestMapperto dispatch the request to a particularAsyncPushConsumerfor 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.AsyncPushConsumercreate(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
-
-
-
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:
createin interfaceorg.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer>- Throws:
org.apache.hc.core5.http.HttpException
-
-