@Controller public class AdminBindingController extends AbstractAdminController
Constructor and Description |
---|
AdminBindingController() |
Modifier and Type | Method and Description |
---|---|
void |
change(String request) |
String |
getAll() |
protected com.fasterxml.jackson.databind.node.ArrayNode |
getBindings() |
String |
onConnectionProviderException(ConnectionProviderException e) |
String |
onJSONException(JSONException e) |
String |
view() |
cacheIsLoading, updateCache
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toJSONValueMap
@ResponseBody @ExceptionHandler(value=JSONException.class) @ResponseStatus(value=BAD_REQUEST) public String onJSONException(JSONException e)
@ResponseBody @ExceptionHandler(value=ConnectionProviderException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public String onConnectionProviderException(ConnectionProviderException e)
@RequestMapping(value="/admin/bindings", method=GET) public String view() throws ConnectionProviderException
ConnectionProviderException
@ResponseBody @RequestMapping(value="/admin/bindings/json", method=GET, produces="application/json; charset=UTF-8") public String getAll() throws ConnectionProviderException
ConnectionProviderException
protected com.fasterxml.jackson.databind.node.ArrayNode getBindings() throws ConnectionProviderException
ConnectionProviderException
@ResponseBody @RequestMapping(value="/admin/bindings/json", method=POST, consumes="application/json; charset=UTF-8") public void change(@RequestBody String request) throws ConnectionProviderException, IOException
Copyright © 2012-2015 52north.org. All Rights Reserved.