Top Description Methods
org.apache.hc.core5.http.nio

public Interface AsyncServerExchangeHandler

extends AsyncDataExchangeHandler
Known Direct Implementers
org.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler, org.apache.hc.core5.http.nio.support.BasicAsyncServerExpectationDecorator, org.apache.hc.core5.http.nio.support.ImmediateResponseExchangeHandler, org.apache.hc.core5.http.nio.support.classic.AbstractClassicServerExchangeHandler
Imports
java.io.IOException, org.apache.hc.core5.http.EntityDetails, .HttpException, .HttpRequest, org.apache.hc.core5.http.protocol.HttpContext

Abstract asynchronous server side message exchange handler that acts as a request consumer and a response producer.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
handleRequest(HttpRequest
the actual request.
request
,
EntityDetails
the request entity details or null if the request does not enclose an entity.
entityDetails
,
ResponseChannel
the response channel.
responseChannel
,
HttpContext
the actual execution context.
context
)

Processes the actual HTTP request.

Inherited from org.apache.hc.core5.http.nio.AsyncDataExchangeHandler:
failed

Method Detail

handleRequestback to summary
public void handleRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context) throws HttpException, IOException

Processes the actual HTTP request. The handler can choose to send response messages immediately inside the call or asynchronously at some later point.

Parameters
request:HttpRequest

the actual request.

entityDetails:EntityDetails

the request entity details or null if the request does not enclose an entity.

responseChannel:ResponseChannel

the response channel.

context:HttpContext

the actual execution context.