@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface JSONP
media type
of this request. At the moment only resource methods are supported to
be annotated with this annotation.
The acceptable JavaScript media types for JSONP compatible with this annotation are:
queryParam()
) takes precedence over
the callback()
value.Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
DEFAULT_CALLBACK
Default JavaScript callback function name.
|
static java.lang.String |
DEFAULT_QUERY
Default query parameter name to obtain the JavaScript callback function name from.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
callback
Name of the JavaScript callback function to which the JSON result should be wrapped into.
|
java.lang.String |
queryParam
If set then the JavaScript callback function name is obtained from a query parameter with the given name.
|
public static final java.lang.String DEFAULT_CALLBACK
public static final java.lang.String DEFAULT_QUERY
public abstract java.lang.String callback
public abstract java.lang.String queryParam
callback()
property is used as the JavaScript callback
function name.