org.sonar.wsclient.services
Class ProfileQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<MODEL>
      extended by org.sonar.wsclient.services.Query<Profile>
          extended by org.sonar.wsclient.services.ProfileQuery

public final class ProfileQuery
extends Query<Profile>

Since:
2.7

Field Summary
static String BASE_URL
           
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Method Summary
static ProfileQuery create(String language, String name)
           
static ProfileQuery createWithLanguage(String language)
           
 String getLanguage()
           
 Class<Profile> getModelClass()
           
 String getName()
           
 String[] getRuleRepositories()
           
 String[] getRuleSeverities()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 ProfileQuery setName(String name)
           
 ProfileQuery setRuleRepositories(String[] ruleRepositories)
           
 ProfileQuery setRuleSeverities(String[] ruleSeverities)
           
 
Methods inherited from class org.sonar.wsclient.services.AbstractQuery
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_URL

public static final String BASE_URL
See Also:
Constant Field Values
Method Detail

getLanguage

public String getLanguage()

getName

public String getName()

getRuleRepositories

public String[] getRuleRepositories()

getRuleSeverities

public String[] getRuleSeverities()

setName

public ProfileQuery setName(String name)

setRuleRepositories

public ProfileQuery setRuleRepositories(String[] ruleRepositories)

setRuleSeverities

public ProfileQuery setRuleSeverities(String[] ruleSeverities)

getModelClass

public Class<Profile> getModelClass()
Specified by:
getModelClass in class Query<Profile>

getUrl

public String getUrl()
Description copied from class: AbstractQuery
Must start with a slash, for example: /api/metrics

IMPORTANT: In implementations of this method we must use helper methods to construct URL.

Specified by:
getUrl in class AbstractQuery<Profile>
See Also:
AbstractQuery.encode(String), AbstractQuery.appendUrlParameter(StringBuilder, String, Object), AbstractQuery.appendUrlParameter(StringBuilder, String, Object[]), AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)

createWithLanguage

public static ProfileQuery createWithLanguage(String language)

create

public static ProfileQuery create(String language,
                                  String name)


Copyright © 2009-2012 SonarSource. All Rights Reserved.