Package io.milton.http
Interface Handler
- All Known Subinterfaces:
ExistingEntityHandler,PropertyHandler,ResourceHandler
- All Known Implementing Classes:
CopyHandler,DeleteHandler,GetHandler,MkColHandler,MoveHandler,OptionsHandler,PostHandler,PropFindHandler,PropPatchHandler,PutHandler,ReportHandler
public interface Handler
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionString[]booleanisCompatible(Resource res) voidprocess(HttpManager httpManager, Request request, Response response)
-
Method Details
-
getMethods
String[] getMethods()- Returns:
- - the http methods supported by this handler. Must be all upper case.
-
process
void process(HttpManager httpManager, Request request, Response response) throws ConflictException, NotAuthorizedException, BadRequestException, NotFoundException -
isCompatible
- Parameters:
res-- Returns:
- - true if the given resource is compatible with this method
-