@Controller
public class ApiController
extends java.lang.Object
| Constructor and Description |
|---|
ApiController(org.springframework.context.ApplicationContext context,
JsonHandler jsonHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
api(java.lang.String apiNs,
java.lang.String actionNs,
java.lang.String remotingApiVar,
java.lang.String pollingUrlsVar,
java.lang.String group,
boolean fullRouterUrl,
java.lang.String format,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method that handles api.js calls.
|
void |
setConfiguration(Configuration configuration) |
@Autowired
public ApiController(org.springframework.context.ApplicationContext context,
JsonHandler jsonHandler)
public void setConfiguration(Configuration configuration)
@RequestMapping(value={"/api.js","/api-debug.js"},
method=GET)
public void api(@RequestParam(value="apiNs",required=false,defaultValue="Ext.app")
java.lang.String apiNs,
@RequestParam(value="actionNs",required=false)
java.lang.String actionNs,
@RequestParam(value="remotingApiVar",required=false,defaultValue="REMOTING_API")
java.lang.String remotingApiVar,
@RequestParam(value="pollingUrlsVar",required=false,defaultValue="POLLING_URLS")
java.lang.String pollingUrlsVar,
@RequestParam(value="group",required=false)
java.lang.String group,
@RequestParam(value="fullRouterUrl",required=false,defaultValue="false")
boolean fullRouterUrl,
@RequestParam(value="format",required=false)
java.lang.String format,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
apiNs - Name of the namespace the variable remotingApiVar will live in.
Defaults to Ext.appactionNs - Name of the namespace the action will live in.remotingApiVar - Name of the remoting api variable. Defaults to REMOTING_APIpollingUrlsVar - Name of the polling urls object. Defaults to POLLING_URLSgroup - Name of the api group. Multiple groups delimited with commafullRouterUrl - If true the router property contains the full request URL with method, server and port. Defaults to false
returns only the url without method, server and portformat - Only valid value is "json2. Ext Designer sends this parameter and the response is a valid JSON.
Defaults to null and response is standard Javascript.request - response - java.io.IOExceptionCopyright © 2010-2012. All Rights Reserved.