Top Description Fields Constructors Methods
org.apache.hc.core5.http.io.support

public Class BasicHttpServerRequestHandler

extends Object
implements HttpServerRequestHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.io.HttpServerRequestHandler
Imports
java.io.IOException, org.apache.hc.core5.http.ClassicHttpRequest, .ClassicHttpResponse, .HttpException, .HttpRequestMapper, .HttpResponseFactory, .HttpStatus, org.apache.hc.core5.http.impl.io.DefaultClassicHttpResponseFactory, org.apache.hc.core5.http.io.HttpRequestHandler, .HttpServerRequestHandler, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args

Basic HttpServerRequestHandler implementation that makes use of HttpRequestMapper to dispatch the request to a particular HttpRequestHandler for processing.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final HttpRequestMapper<HttpRequestHandler>
private final HttpResponseFactory<ClassicHttpResponse>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
handle(final ClassicHttpRequest
the actual request.
request
,
final HttpServerRequestHandler.ResponseTrigger
the response trigger.
responseTrigger
,
final HttpContext
the actual execution context.
context
)

Implements org.apache.hc.core5.http.io.HttpServerRequestHandler.handle.

Handles the request and submits a final response to be sent back to the client.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerMapperback to summary
private final HttpRequestMapper<HttpRequestHandler> handlerMapper
responseFactoryback to summary
private final HttpResponseFactory<ClassicHttpResponse> responseFactory

Constructor Detail

BasicHttpServerRequestHandlerback to summary
public BasicHttpServerRequestHandler(final HttpRequestMapper<HttpRequestHandler> handlerMapper, final HttpResponseFactory<ClassicHttpResponse> responseFactory)
BasicHttpServerRequestHandlerback to summary
public BasicHttpServerRequestHandler(final HttpRequestMapper<HttpRequestHandler> handlerMapper)

Method Detail

handleback to summary
public void handle(final ClassicHttpRequest request, final HttpServerRequestHandler.ResponseTrigger responseTrigger, final HttpContext context) throws HttpException, IOException

Implements org.apache.hc.core5.http.io.HttpServerRequestHandler.handle.

Doc from org.apache.hc.core5.http.io.HttpServerRequestHandler.handle.

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

Parameters
request:ClassicHttpRequest

the actual request.

responseTrigger:HttpServerRequestHandler.ResponseTrigger

the response trigger.

context:HttpContext

the actual execution context.

Annotations
@Override