public final class DefaultAsyncResponseExchangeHandlerFactory extends Object implements HandlerFactory<AsyncServerExchangeHandler>
AsyncServerExchangeHandler
instances that make use
of HttpRequestMapper
to dispatch
the request to a particular AsyncServerExchangeHandler
for processing.Constructor and Description |
---|
DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper) |
DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper,
Decorator<AsyncServerExchangeHandler> decorator) |
Modifier and Type | Method and Description |
---|---|
AsyncServerExchangeHandler |
create(HttpRequest request,
HttpContext context)
Creates a new handler instance based on properties of
an incoming request message..
|
public DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper, Decorator<AsyncServerExchangeHandler> decorator)
public DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper)
public AsyncServerExchangeHandler create(HttpRequest request, HttpContext context) throws HttpException
HandlerFactory
create
in interface HandlerFactory<AsyncServerExchangeHandler>
request
- the incoming request head.context
- the actual execution context.HttpException
- in case of an HTTP protocol violation.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.