| | |
| | | import java.util.HashMap;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | | import java.util.Properties;
|
| | |
|
| | | import javax.servlet.ServletException;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
| | | }
|
| | | } else if (RpcRequest.LIST_SETTINGS.equals(reqType)) {
|
| | | // return the server's settings
|
| | | Properties settings = new Properties();
|
| | | List<String> keys = GitBlit.getAllKeys(null);
|
| | | for (String key : keys) {
|
| | | String value = GitBlit.getString(key, null);
|
| | | if (value != null) {
|
| | | settings.put(key, value);
|
| | | }
|
| | | }
|
| | | result = settings;
|
| | | result = GitBlit.self().getSettingModels();
|
| | | } else if (RpcRequest.LIST_SERVER_STATUS.equals(reqType)) {
|
| | | // return the server's status information
|
| | | result = GitBlit.self().getStatus();
|
| | | }
|
| | |
|
| | | // send the result of the request
|