public class DefaultHTTPResourceHandler extends java.lang.Object implements HTTPRequestHandler
| Constructor and Description |
|---|
DefaultHTTPResourceHandler(Resource resource,
AuthorizationManager authMan)
Creates a default HTTP resource handler with a given buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
HTTPResponse |
handle(HTTPRequestHeader header,
HTTPInputStream body,
ConnectionInfo connectionInfo,
MonitoringContext context)
Handles a HTTP request.
|
public DefaultHTTPResourceHandler(Resource resource, AuthorizationManager authMan)
resource - the resource to send.public HTTPResponse handle(HTTPRequestHeader header, HTTPInputStream body, ConnectionInfo connectionInfo, MonitoringContext context) throws java.io.IOException
HTTPRequestHandlerhandle in interface HTTPRequestHandlerheader - the http request headerbody - the http request bodyconnectionInfo - transport/addressing related information attached to the requestjava.io.IOException