|
||||||||||
| 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.
| Optional Element Summary | |
|---|---|
String |
callback
Name of the JavaScript callback function to which the JSON result should be wrapped into. |
boolean |
isQueryParam
A flag to determine whether the #callback should be treated as a query parameter name (present in .net.URI). |
public abstract String callback
#isQueryParam
value is true then the actual callback function name is determined from the query parameter name (defined by the
value of this property), otherwise the value of this property is used as the JavaScript callback function name.
public abstract boolean isQueryParam
#callback should be treated as a query parameter name (present in .net.URI).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||