public class BasicHttpServerRequestHandler extends Object implements HttpServerRequestHandler
HttpServerRequestHandler
implementation that makes use of
HttpRequestMapper
to dispatch the request to a particular
HttpRequestHandler
for processing.HttpServerRequestHandler.ResponseTrigger
Constructor and Description |
---|
BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper) |
BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context)
Handles the request and submits a final response to be sent back to the client.
|
public BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper, HttpResponseFactory<ClassicHttpResponse> responseFactory)
public BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper)
public void handle(ClassicHttpRequest request, HttpServerRequestHandler.ResponseTrigger responseTrigger, HttpContext context) throws HttpException, IOException
HttpServerRequestHandler
handle
in interface HttpServerRequestHandler
request
- the actual request.responseTrigger
- the response trigger.context
- the actual execution context.HttpException
IOException
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.