public class AntiCsrfAPI extends ApiImplementor
Constructor and Description |
---|
AntiCsrfAPI(ExtensionAntiCSRF ext) |
Modifier and Type | Method and Description |
---|---|
static String |
getAntiCsrfFormUrl(int hrefid) |
String |
getPrefix() |
HttpMessage |
handleApiOther(HttpMessage msg,
String name,
net.sf.json.JSONObject params)
Override if implementing one or more 'other' operations - these are operations that _dont_
return structured data
|
ApiResponse |
handleApiView(String name,
net.sf.json.JSONObject params)
Override if implementing one or more views
|
addApiAction, addApiOptions, addApiOthers, addApiPersistentConnection, addApiShortcut, addApiView, addCustomHeaders, getApiAction, getApiActions, getApiOther, getApiOthers, getApiPersistentConnection, getApiPersistentConnections, getApiShortcuts, getApiView, getApiViews, getDescriptionKey, getI18nPrefix, getParam, getParam, getParam, getParam, handleApiAction, handleApiOptionAction, handleApiOptionView, handleApiPersistentConnection, handleCallBack, handleShortcut, validateParamExists
public AntiCsrfAPI(ExtensionAntiCSRF ext)
public String getPrefix()
getPrefix
in class ApiImplementor
public static String getAntiCsrfFormUrl(int hrefid)
public ApiResponse handleApiView(String name, net.sf.json.JSONObject params) throws ApiException
ApiImplementor
handleApiView
in class ApiImplementor
name
- the name of the requested viewparams
- the API request parametersApiException
- if an error occurred while handling the API view endpointpublic HttpMessage handleApiOther(HttpMessage msg, String name, net.sf.json.JSONObject params) throws ApiException
ApiImplementor
handleApiOther
in class ApiImplementor
msg
- the HTTP message containing the API requestname
- the name of the requested other endpointparams
- the API request parametersApiException
- if an error occurred while handling the API other endpoint