@Controller public class ApiController extends Object
| Constructor and Description |
|---|
ApiController() |
| Modifier and Type | Method and Description |
|---|---|
void |
api(String apiNs,
String actionNs,
String remotingApiVar,
String pollingUrlsVar,
String sseVar,
String group,
boolean fullRouterUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method that handles fingerprinted api.js calls (i.e.
|
void |
api(String apiNs,
String actionNs,
String remotingApiVar,
String pollingUrlsVar,
String sseVar,
String group,
boolean fullRouterUrl,
String format,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method that handles api.js and api-debug.js calls.
|
@RequestMapping(value={"/api.js","/api-debug.js","/api-debug-doc.js"},
method=GET)
public void api(@RequestParam(value="apiNs",required=false,defaultValue="Ext.app")
String apiNs,
@RequestParam(value="actionNs",required=false)
String actionNs,
@RequestParam(value="remotingApiVar",required=false,defaultValue="REMOTING_API")
String remotingApiVar,
@RequestParam(value="pollingUrlsVar",required=false,defaultValue="POLLING_URLS")
String pollingUrlsVar,
@RequestParam(value="sseVar",required=false,defaultValue="SSE")
String sseVar,
@RequestParam(value="group",required=false)
String group,
@RequestParam(value="fullRouterUrl",required=false,defaultValue="false")
boolean fullRouterUrl,
@RequestParam(value="format",required=false)
String format,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws 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_URLSsseVar - name of the SSE urls object. Defaults to SSEgroup - 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 JSON. Defaults to null and
response is Javascript.request - the HTTP servlet requestresponse - the HTTP servlet responseIOException@RequestMapping(value="/api-{fingerprint}.js",
method=GET)
public void api(@RequestParam(value="apiNs",required=false,defaultValue="Ext.app")
String apiNs,
@RequestParam(value="actionNs",required=false)
String actionNs,
@RequestParam(value="remotingApiVar",required=false,defaultValue="REMOTING_API")
String remotingApiVar,
@RequestParam(value="pollingUrlsVar",required=false,defaultValue="POLLING_URLS")
String pollingUrlsVar,
@RequestParam(value="sseVar",required=false,defaultValue="SSE")
String sseVar,
@RequestParam(value="group",required=false)
String group,
@RequestParam(value="fullRouterUrl",required=false,defaultValue="false")
boolean fullRouterUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws 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_URLSsseVar - name of the SSE urls object. Defaults to SSEgroup - 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 portrequest - the HTTP servlet requestresponse - the HTTP servlet responseIOExceptionCopyright © 2010-2013. All Rights Reserved.