diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-01-23 18:12:30 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-01-24 18:36:49 +0100 |
commit | 17cbda842774f2331d65a53cd645ba2dcd2d154a (patch) | |
tree | da8494229f2834ccb9b920b7822dc63ef45959f3 /sonar-plugin-api | |
parent | 4fc7e70ddb24c863a2686b954676790adf071aa7 (diff) | |
download | sonarqube-17cbda842774f2331d65a53cd645ba2dcd2d154a.tar.gz sonarqube-17cbda842774f2331d65a53cd645ba2dcd2d154a.zip |
SONAR-7298 Deprecate and rewrite WS api/projects/index in Java
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/ws/RailsHandler.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/RailsHandler.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/RailsHandler.java index 5c86c340ecf..63ce01080fb 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/RailsHandler.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/RailsHandler.java @@ -27,7 +27,6 @@ package org.sonar.api.server.ws; public class RailsHandler implements RequestHandler { public static final RequestHandler INSTANCE = new RailsHandler(); - public static final String PARAM_FORMAT = "format"; private RailsHandler() { // Nothing @@ -38,26 +37,4 @@ public class RailsHandler implements RequestHandler { throw new UnsupportedOperationException("This web service is implemented in rails"); } - public static WebService.NewParam addFormatParam(WebService.NewAction action) { - return action.createParam(PARAM_FORMAT) - .setDescription("Response format can be set through:" + - "<ul>" + - "<li>Parameter format: xml | json</li>" + - "<li>Or the 'Accept' property in the HTTP header:" + - "<ul>" + - "<li>Accept:text/xml</li>" + - "<li>Accept:application/json</li>" + - "</ul></li></ul>" + - "If nothing is set, json is used.<br/>" + - "Since 6.1, XML format is deprecated, only JSON format should be used.") - .setPossibleValues("json", "xml") - .setDeprecatedSince("6.1"); - } - - public static WebService.NewParam addJsonOnlyFormatParam(WebService.NewAction action) { - return action.createParam(PARAM_FORMAT) - .setDescription("Only json response format is available") - .setPossibleValues("json"); - } - } |