org.sonar.wsclient.services
Class MetricQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<M>
      extended by org.sonar.wsclient.services.Query<Metric>
          extended by org.sonar.wsclient.services.MetricQuery

public final class MetricQuery
extends Query<Metric>


Field Summary
static String BASE_URL
           
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Method Summary
static MetricQuery all()
           
static MetricQuery byKey(String metricKey)
           
 Class<Metric> getModelClass()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 
Methods inherited from class org.sonar.wsclient.services.AbstractQuery
appendUrlParameter, 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

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<Metric>
See Also:
AbstractQuery.encode(String), AbstractQuery.appendUrlParameter(StringBuilder, String, Object), AbstractQuery.appendUrlParameter(StringBuilder, String, Object[]), AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)

getModelClass

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

all

public static MetricQuery all()

byKey

public static MetricQuery byKey(String metricKey)


Copyright © 2009-2014 SonarSource. All Rights Reserved.