aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator/src/main/resources/defaultWsClient.vm
blob: eb5b11a3c0e5354f926e1ef32070d55950f9d3ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
 * SonarQube
 * Copyright (C) 2009-2017 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.sonarqube.ws.client;

import javax.annotation.Generated;
import org.sonarqube.ws.client.ce.CeService;
import org.sonarqube.ws.client.organization.OrganizationService;
import org.sonarqube.ws.client.projectanalysis.ProjectAnalysisService;
import org.sonarqube.ws.client.projectbranches.ProjectBranchesServiceOld;
import org.sonarqube.ws.client.projectlinks.ProjectLinksService;
import org.sonarqube.ws.client.qualitygates.QualitygatesService;
import org.sonarqube.ws.client.qualityprofile.QualityProfilesService;
import org.sonarqube.ws.client.system.SystemServiceOld;

#foreach($webService in $webServices)
#if ($helper.isIncluded($webService.path.asString))
$helper.webserviceTypeImport($webService.path.asString)
#end
#end

/**
 * This class is not public anymore since version 5.5. It is
 * created by {@link WsClientFactory}
 *
 * @since 5.3
 */
@Generated("sonar-ws-generator")
class DefaultWsClient implements WsClient {

  private final WsConnector wsConnector;

#foreach($webService in $webServices)
#if ($helper.isIncluded($webService.path.asString))
  private final $helper.className($webService.path.asString) $helper.defaultWsClientFieldName($webService.path.asString);
#end
#end

  DefaultWsClient(WsConnector wsConnector) {
    this.wsConnector = wsConnector;

#foreach($webService in $webServices)
#if ($helper.isIncluded($webService.path.asString))
    this.$helper.defaultWsClientFieldName($webService.path.asString) = new $helper.className($webService.path.asString)(wsConnector);
#end
#end
  }

  @Override
  @Deprecated
  public WsConnector wsConnector() {
    return wsConnector;
  }
#foreach($webService in $webServices)
#if ($helper.isIncluded($webService.path.asString))

  @Override
  public $helper.className($webService.path.asString) $helper.defaultWsClientMethodName($webService.path.asString)() {
    return $helper.defaultWsClientFieldName($webService.path.asString);
  }
#end
#end
}