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

public Interface HttpRequestHandler

Imports
java.io.IOException, org.apache.hc.core5.http.ClassicHttpRequest, .ClassicHttpResponse, .HttpException, org.apache.hc.core5.http.protocol.HttpContext

HttpRequestHandler represents a routine for processing of a specific group of HTTP requests. Protocol handlers are designed to take care of protocol specific aspects, whereas individual request handlers are expected to take care of application specific HTTP processing. The main purpose of a request handler is to generate a response object with a content entity to be sent back to the client in response to the given request
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
handle(ClassicHttpRequest
the HTTP request.
request
,
ClassicHttpResponse
the HTTP response.
response
,
HttpContext
the HTTP execution context.
context
)

Handles the request and produces a response to be sent back to the client.

Method Detail

handleback to summary
public void handle(ClassicHttpRequest request, ClassicHttpResponse response, HttpContext context) throws HttpException, IOException

Handles the request and produces a response to be sent back to the client.

Parameters
request:ClassicHttpRequest

the HTTP request.

response:ClassicHttpResponse

the HTTP response.

context:HttpContext

the HTTP execution context.

Exceptions
HttpException:
in case of HTTP protocol violation or a processing problem.
IOException:
in case of an I/O error.