public class AlertAPI extends ApiImplementor
Constructor and Description |
---|
AlertAPI(ExtensionAlert ext) |
Modifier and Type | Method and Description |
---|---|
String |
getPrefix() |
ApiResponse |
handleApiAction(String name,
net.sf.json.JSONObject params)
Override if implementing one or more actions
|
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, getParam, getParam, getParam, handleApiOptionAction, handleApiOptionView, handleApiOther, handleApiPersistentConnection, handleCallBack, handleShortcut, validateParamExists
public static final String PREFIX
public AlertAPI(ExtensionAlert ext)
public String getPrefix()
getPrefix
in class ApiImplementor
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 ApiResponse handleApiAction(String name, net.sf.json.JSONObject params) throws ApiException
ApiImplementor
handleApiAction
in class ApiImplementor
name
- the name of the requested actionparams
- the API request parametersApiException
- if an error occurred while handling the API action endpoint