Package io.milton.http.annotated
Class ChildOfAnnotationHandler
java.lang.Object
io.milton.http.annotated.AbstractAnnotationHandler
io.milton.http.annotated.ChildOfAnnotationHandler
- All Implemented Interfaces:
AnnotationHandler
- Author:
- brad
-
Field Summary
FieldsFields inherited from class io.milton.http.annotated.AbstractAnnotationHandler
annoClass, annoResourceFactory, methods -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(AnnoCollectionResource parent, String childName) Will return one of: - ChildOfAnnotationHandler.NOT_ATTEMPTED if no appropriate method was found - null, if a method was available but no resource was found - or, the child object with the given name wrapped in an AnnoResourceMethods inherited from class io.milton.http.annotated.AbstractAnnotationHandler
attemptToReadProperty, attemptToSetProperty, getAnnoClass, getControllerMethods, getMethodForType, getSupportedMethods, invoke, isCompatible, parseController
-
Field Details
-
NOT_ATTEMPTED
- See Also:
-
-
Constructor Details
-
ChildOfAnnotationHandler
-
-
Method Details
-
execute
public Object execute(AnnoCollectionResource parent, String childName) throws NotAuthorizedException, BadRequestException, NotFoundException Will return one of: - ChildOfAnnotationHandler.NOT_ATTEMPTED if no appropriate method was found - null, if a method was available but no resource was found - or, the child object with the given name wrapped in an AnnoResource- Parameters:
parent-childName-- Returns:
- - a tri-value indicating the object which was found, no object was found, or search was not attempted
- Throws:
NotAuthorizedExceptionBadRequestExceptionNotFoundException
-