Top Description Fields Constructors Methods
org.apache.hc.core5.http2.nio.support

public final Class DefaultAsyncPushConsumerFactory

extends Object
implements HandlerFactory<AsyncPushConsumer>
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.nio.HandlerFactory
Imports
org.apache.hc.core5.function.Supplier, org.apache.hc.core5.http.HttpException, .HttpRequest, .HttpRequestMapper, .MisdirectedRequestException, org.apache.hc.core5.http.nio.AsyncPushConsumer, .HandlerFactory, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args

Factory for AsyncPushConsumer instances that make use of HttpRequestMapper to dispatch the request to a particular AsyncPushConsumer for processing.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final HttpRequestMapper<Supplier<AsyncPushConsumer>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AsyncPushConsumer
create(final HttpRequest
the incoming request head.
request
,
final HttpContext
the actual execution context.
context
)

Implements org.apache.hc.core5.http.nio.HandlerFactory.create.

Creates a new handler instance based on properties of an incoming request message..
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapperback to summary
private final HttpRequestMapper<Supplier<AsyncPushConsumer>> mapper

Constructor Detail

DefaultAsyncPushConsumerFactoryback to summary
public DefaultAsyncPushConsumerFactory(final HttpRequestMapper<Supplier<AsyncPushConsumer>> mapper)

Method Detail

createback to summary
public AsyncPushConsumer create(final HttpRequest request, final HttpContext context) throws HttpException

Implements org.apache.hc.core5.http.nio.HandlerFactory.create.

Doc from org.apache.hc.core5.http.nio.HandlerFactory.create.

Creates a new handler instance based on properties of an incoming request message..

Parameters
request:HttpRequest

the incoming request head.

context:HttpContext

the actual execution context.

Returns:AsyncPushConsumer

handler

Annotations
@Override