org.cruxframework.crux.core.client.rest
Annotation Type RestProxy.UseJsonP


@Retention(value=RUNTIME)
@Target(value=TYPE)
public static @interface RestProxy.UseJsonP

A marker interface to specify that the calls made to the service must be made through jsonP. The server must support jsonP. It can be used to access cross site services that does not allow the current domain through CORS.

Author:
Thiago da Rosa de Bustamante

Optional Element Summary
 String callbackParam
          Inform the name of the jsonp callback parameter.
 String failureCallbackParam
          Inform the name of the jsonp error callback parameter.
 

callbackParam

public abstract String callbackParam
Inform the name of the jsonp callback parameter. If not specified, "callback" is used.

Default:
""

failureCallbackParam

public abstract String failureCallbackParam
Inform the name of the jsonp error callback parameter. If not specified, no failure callback function is called.

Default:
""


Copyright © 2014. All rights reserved.