@Contract(threading=STATELESS) public final class TerminalAsyncServerFilter extends Object implements AsyncFilterHandler
AsyncFilterHandler
implementation represents a terminal handler
in an asynchronous request processing pipeline that makes use of HandlerFactory
to dispatch the request to a particular AsyncServerExchangeHandler
.Constructor and Description |
---|
TerminalAsyncServerFilter(HandlerFactory<AsyncServerExchangeHandler> handlerFactory) |
Modifier and Type | Method and Description |
---|---|
AsyncDataConsumer |
handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain)
Processes the incoming HTTP request and if processing has been completed
submits a final response to the client.
|
public TerminalAsyncServerFilter(HandlerFactory<AsyncServerExchangeHandler> handlerFactory)
public AsyncDataConsumer handle(HttpRequest request, EntityDetails entityDetails, HttpContext context, AsyncFilterChain.ResponseTrigger responseTrigger, AsyncFilterChain chain) throws HttpException, IOException
AsyncFilterHandler
AsyncFilterChain.proceed(HttpRequest, EntityDetails, HttpContext, AsyncFilterChain.ResponseTrigger)
method.handle
in interface AsyncFilterHandler
request
- the actual request head.entityDetails
- the request entity details or null
if the request
does not enclose an entity.context
- the actual execution context.responseTrigger
- the response trigger.chain
- the next element in the request processing chain.null
if entityDetails parameter is null
.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.