java.lang.Object
cloud.piranha.http.impl.DefaultHttpServerProcessor
- All Implemented Interfaces:
HttpServerProcessor
The default implementation of a HTTP Server Processor.
This HTTP Server Processor will either show the user with a directory listing, or stream back contents of the file clicked on in the browser, or it will return a 404 error because neither could be found.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
process(HttpServerRequest request, HttpServerResponse response)
Process the request.
-
Constructor Details
-
DefaultHttpServerProcessor
public DefaultHttpServerProcessor()
-
-
Method Details
-
process
Description copied from interface:HttpServerProcessor
Process the request.- Specified by:
process
in interfaceHttpServerProcessor
- Parameters:
request
- the HTTP Server Request.response
- the HTTP Server Response.- Returns:
- true if the request triggered async processing, false otherwise
- See Also:
HttpServerProcessor.process(cloud.piranha.http.api.HttpServerRequest, cloud.piranha.http.api.HttpServerResponse)
-