Package io.milton.http.annotated
Class PostAnnotationHandler
java.lang.Object
io.milton.http.annotated.AbstractAnnotationHandler
io.milton.http.annotated.PostAnnotationHandler
- All Implemented Interfaces:
AnnotationHandler
- Author:
- brad
-
Field Summary
Fields inherited from class io.milton.http.annotated.AbstractAnnotationHandler
annoClass, annoResourceFactory, methods -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCan return a String (meaning redirect to url), or a JsonResult which will be rendered to output in the sendContent phase, or null.getPostMethod(AnnoResource resource, Request request, Map<String, String> params) Methods inherited from class io.milton.http.annotated.AbstractAnnotationHandler
attemptToReadProperty, attemptToSetProperty, getAnnoClass, getControllerMethods, getMethodForType, getSupportedMethods, invoke, isCompatible, parseController
-
Constructor Details
-
PostAnnotationHandler
-
-
Method Details
-
execute
public Object execute(AnnoResource resource, Request request, Map<String, String> params) throws BadRequestException, NotAuthorizedException, ConflictExceptionCan return a String (meaning redirect to url), or a JsonResult which will be rendered to output in the sendContent phase, or null. If null is returned the sendContent phase will use normal GET processing- Parameters:
resource-request-params-- Returns:
- Throws:
BadRequestExceptionNotAuthorizedExceptionConflictException
-
getPostMethod
public ControllerMethod getPostMethod(AnnoResource resource, Request request, Map<String, String> params)
-