@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Post
Typically used with AJAX requests.
The return value can either be a String, which is interpreted as a redirect URL; or it can be a JsonResult, which will be serialized back to the client
If null is returned then a response will be generated as if the request was
a GET
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
bindData
If true, milton will attempt to bind request parameters to the source object
If values are present and cannot be bound, will return a JsonResult containing
field validation failures
For this reason you should ONLY use data binding with AJAX posts
|
String[] |
params
If present, only requests which contain all of the given parameters will
be matched
|
AccessControlledResource.Priviledge |
requiredPriviledge
The priviledge required to execute this POST request.
|
String |
timeZoneParam
If present, and not empty, identifies a request parameter which
contains the timezone ID in the form post to use for parsing
date/time values
If empty the platform default will be used
|
public abstract AccessControlledResource.Priviledge requiredPriviledge
public abstract String[] params
public abstract boolean bindData
public abstract String timeZoneParam