Package cloud.piranha.http.impl
Class DefaultHttpServerProcessor
- java.lang.Object
-
- cloud.piranha.http.impl.DefaultHttpServerProcessor
-
- All Implemented Interfaces:
HttpServerProcessor
public class DefaultHttpServerProcessor extends Object implements 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
Constructors Constructor Description DefaultHttpServerProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(HttpServerRequest request, HttpServerResponse response)
Process the request.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cloud.piranha.http.api.HttpServerProcessor
isAsync
-
-
-
-
Method Detail
-
process
public void process(HttpServerRequest request, HttpServerResponse response)
Description copied from interface:HttpServerProcessor
Process the request.- Specified by:
process
in interfaceHttpServerProcessor
- Parameters:
request
- the HTTP Server Request.response
- the HTTP Server Response.- See Also:
HttpServerProcessor.process(cloud.piranha.http.api.HttpServerRequest, cloud.piranha.http.api.HttpServerResponse)
-
-