|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface JSONP
This annotation can be used to define the JavaScript callback function name if the valid JSONP format is requested as an
acceptable media type of this request. At the moment only resource methods should be
annotated with this annotation.
queryParam()) takes precedence over
the callback() value.
| Optional Element Summary | |
|---|---|
String |
callback
Name of the JavaScript callback function to which the JSON result should be wrapped into. |
String |
queryParam
If set then the JavaScript callback function name is obtained from a query parameter with the given name. |
public abstract String callback
public abstract String queryParam
callback() property is used as the JavaScript callback
function name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||