Package io.milton.http.report
Class ReportHandler
java.lang.Object
io.milton.http.report.ReportHandler
- All Implemented Interfaces:
ExistingEntityHandler,Handler,ResourceHandler
- Author:
- alex
-
Constructor Summary
ConstructorsConstructorDescriptionReportHandler(WebDavResponseHandler responseHandler, ResourceHandlerHelper resourceHandlerHelper, Map<String, Report> reports) -
Method Summary
Modifier and TypeMethodDescriptionString[]booleanisCompatible(Resource res) voidprocess(HttpManager httpManager, Request request, Response response) voidprocessExistingResource(HttpManager manager, Request request, Response response, Resource resource) voidprocessResource(HttpManager manager, Request request, Response response, Resource r)
-
Constructor Details
-
ReportHandler
public ReportHandler(WebDavResponseHandler responseHandler, ResourceHandlerHelper resourceHandlerHelper, Map<String, Report> reports)
-
-
Method Details
-
getMethods
- Specified by:
getMethodsin interfaceHandler- Returns:
- - the http methods supported by this handler. Must be all upper case.
-
process
public void process(HttpManager httpManager, Request request, Response response) throws ConflictException, NotAuthorizedException, BadRequestException - Specified by:
processin interfaceHandler- Throws:
ConflictExceptionNotAuthorizedExceptionBadRequestException
-
processResource
public void processResource(HttpManager manager, Request request, Response response, Resource r) throws NotAuthorizedException, ConflictException, BadRequestException - Specified by:
processResourcein interfaceResourceHandler- Throws:
NotAuthorizedExceptionConflictExceptionBadRequestException
-
processExistingResource
public void processExistingResource(HttpManager manager, Request request, Response response, Resource resource) throws NotAuthorizedException, BadRequestException, ConflictException - Specified by:
processExistingResourcein interfaceExistingEntityHandler- Throws:
NotAuthorizedExceptionBadRequestExceptionConflictException
-
isCompatible
- Specified by:
isCompatiblein interfaceHandler- Returns:
- - true if the given resource is compatible with this method
-