| | |
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | public static final int PROTOCOL_VERSION = 2;
|
| | | public static final int PROTOCOL_VERSION = 4;
|
| | |
|
| | | public RpcServlet() {
|
| | | super();
|
| | |
| | | for (String key : keys) {
|
| | | managementSettings.add(settings.get(key));
|
| | | }
|
| | | if (allowManagement) {
|
| | | managementSettings.pushScripts = settings.pushScripts;
|
| | | }
|
| | | result = managementSettings;
|
| | | }
|
| | | } else if (RpcRequest.EDIT_SETTINGS.equals(reqType)) {
|
| | |
| | | } else {
|
| | | response.sendError(notAllowedCode);
|
| | | }
|
| | | } else if (RpcRequest.CLEAR_REPOSITORY_CACHE.equals(reqType)) {
|
| | | // clear the repository list cache
|
| | | if (allowManagement) {
|
| | | GitBlit.self().resetRepositoryListCache();
|
| | | } else {
|
| | | response.sendError(notAllowedCode);
|
| | | }
|
| | | }
|
| | |
|
| | | // send the result of the request
|