You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaultWsClient.vm 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2022 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonarqube.ws.client;
  21. import javax.annotation.Generated;
  22. import org.sonarqube.ws.client.ce.CeService;
  23. import org.sonarqube.ws.client.organization.OrganizationService;
  24. import org.sonarqube.ws.client.projectanalysis.ProjectAnalysisService;
  25. import org.sonarqube.ws.client.projectbranches.ProjectBranchesServiceOld;
  26. import org.sonarqube.ws.client.projectlinks.ProjectLinksService;
  27. import org.sonarqube.ws.client.qualitygates.QualitygatesService;
  28. import org.sonarqube.ws.client.qualityprofile.QualityProfilesService;
  29. import org.sonarqube.ws.client.system.SystemServiceOld;
  30. #foreach($webService in $webServices)
  31. #if ($helper.isIncluded($webService.path.asString))
  32. $helper.webserviceTypeImport($webService.path.asString)
  33. #end
  34. #end
  35. /**
  36. * This class is not public anymore since version 5.5. It is
  37. * created by {@link WsClientFactory}
  38. *
  39. * @since 5.3
  40. */
  41. @Generated("sonar-ws-generator")
  42. class DefaultWsClient implements WsClient {
  43. private final WsConnector wsConnector;
  44. #foreach($webService in $webServices)
  45. #if ($helper.isIncluded($webService.path.asString))
  46. private final $helper.className($webService.path.asString) $helper.defaultWsClientFieldName($webService.path.asString);
  47. #end
  48. #end
  49. DefaultWsClient(WsConnector wsConnector) {
  50. this.wsConnector = wsConnector;
  51. #foreach($webService in $webServices)
  52. #if ($helper.isIncluded($webService.path.asString))
  53. this.$helper.defaultWsClientFieldName($webService.path.asString) = new $helper.className($webService.path.asString)(wsConnector);
  54. #end
  55. #end
  56. }
  57. @Override
  58. @Deprecated
  59. public WsConnector wsConnector() {
  60. return wsConnector;
  61. }
  62. #foreach($webService in $webServices)
  63. #if ($helper.isIncluded($webService.path.asString))
  64. @Override
  65. public $helper.className($webService.path.asString) $helper.defaultWsClientMethodName($webService.path.asString)() {
  66. return $helper.defaultWsClientFieldName($webService.path.asString);
  67. }
  68. #end
  69. #end
  70. }