@Controller public class AdminOperationController extends AbstractAdminController
Constructor and Description |
---|
AdminOperationController() |
Modifier and Type | Method and Description |
---|---|
void |
change(String request) |
String |
getAll() |
String |
onConnectionProviderException(ConnectionProviderException e) |
String |
onJSONException(org.codehaus.jettison.json.JSONException e) |
String |
view() |
cacheIsLoading, updateCache
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toSimpleMap
@ResponseBody @ExceptionHandler(value=org.codehaus.jettison.json.JSONException.class) @ResponseStatus(value=BAD_REQUEST) public String onJSONException(org.codehaus.jettison.json.JSONException e)
@ResponseBody @ExceptionHandler(value=ConnectionProviderException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public String onConnectionProviderException(ConnectionProviderException e)
@RequestMapping(value="/admin/operations", method=GET) public String view() throws ConnectionProviderException
ConnectionProviderException
@ResponseBody @RequestMapping(value="/admin/operations/json", method=GET, produces="application/json; charset=UTF-8") public String getAll() throws org.codehaus.jettison.json.JSONException, ConnectionProviderException
org.codehaus.jettison.json.JSONException
ConnectionProviderException
@ResponseBody @RequestMapping(value="/admin/operations/json", method=POST, consumes="application/json; charset=UTF-8") public void change(@RequestBody String request) throws org.codehaus.jettison.json.JSONException, ConnectionProviderException
org.codehaus.jettison.json.JSONException
ConnectionProviderException
Copyright © 2012-2014 52north.org. All Rights Reserved.