@Controller public class AdminEncodingController extends AbstractAdminController
Constructor and Description |
---|
AdminEncodingController() |
Modifier and Type | Method and Description |
---|---|
void |
change(String request) |
String |
getAll() |
protected org.codehaus.jettison.json.JSONArray |
getObservationEncodings() |
protected org.codehaus.jettison.json.JSONArray |
getProcedureEncodings() |
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/encodings", method=GET) public String view() throws ConnectionProviderException
ConnectionProviderException
@ResponseBody @RequestMapping(value="/admin/encodings/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/encodings/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
protected org.codehaus.jettison.json.JSONArray getObservationEncodings() throws ConnectionProviderException, ConfigurationException, org.codehaus.jettison.json.JSONException
ConnectionProviderException
ConfigurationException
org.codehaus.jettison.json.JSONException
protected org.codehaus.jettison.json.JSONArray getProcedureEncodings() throws org.codehaus.jettison.json.JSONException, ConnectionProviderException, ConfigurationException
org.codehaus.jettison.json.JSONException
ConnectionProviderException
ConfigurationException
Copyright © 2012-2014 52north.org. All Rights Reserved.