Package io.milton.http.annotated
Interface AnnotationHandler
- All Known Implementing Classes:
AbstractAnnotationHandler,AccessControlListAnnotationHandler,AddressBooksAnnotationHandler,AuthenticateAnnotationHandler,CalendarDateRangeQueryAnnotationHandler,CalendarInvitationsAnnotationHandler,CalendarInvitationsCTagAnnotationHandler,CalendarsAnnotationHandler,ChildOfAnnotationHandler,ChildrenOfAnnotationHandler,CommonPropertyAnnotationHandler,ContactDataAnnotationHandler,ContentTypeAnnotationHandler,CopyAnnotationHandler,CTagAnnotationHandler,DeleteAnnotationHandler,DisplayNameAnnotationHandler,DisplayNameSetterAnnotationHandler,FreeBusyQueryAnnotationHandler,GetAnnotationHandler,ICalDataAnnotationHandler,MakeCalendarAnnotationHandler,MakeCollectionAnnotationHandler,MoveAnnotationHandler,PostAnnotationHandler,PrincipalSearchAnnotationHandler,PutChildAnnotationHandler,RootAnnotationHandler,UsersAnnotationHandler
public interface AnnotationHandler
Common interface for handlers which implement the logic for annotations. Includes
method handlers and property handlers
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionGet the annotation class that this handler handlesList the methods found when parsing annotations on the controllerReturn any HTTP methods which this annotation handler supportsbooleanisCompatible(Object source) Determine if this handler is able to support the given source object, ie if there is a controller method registered in this handler that supports the given source typevoidparseController(Object controller) Called on initialisation, the handler should look for annotations on the controller object and prepare itself to use them
-
Method Details
-
parseController
Called on initialisation, the handler should look for annotations on the controller object and prepare itself to use them- Parameters:
controller-
-
getSupportedMethods
Request.Method[] getSupportedMethods()Return any HTTP methods which this annotation handler supports- Returns:
-
isCompatible
Determine if this handler is able to support the given source object, ie if there is a controller method registered in this handler that supports the given source type- Parameters:
source-- Returns:
-
getControllerMethods
List<ControllerMethod> getControllerMethods()List the methods found when parsing annotations on the controller- Returns:
-
getAnnoClass
Class getAnnoClass()Get the annotation class that this handler handles- Returns:
-