org.sonar.wsclient.services
Class MetricUpdateQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<M>
      extended by org.sonar.wsclient.services.UpdateQuery<Metric>
          extended by org.sonar.wsclient.services.MetricUpdateQuery

public class MetricUpdateQuery
extends UpdateQuery<Metric>

Since:
3.6

Field Summary
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Method Summary
 String getBody()
          Property description transmitted through request body as content may exceed URL size allowed by the server.
 Class<Metric> getModelClass()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 MetricUpdateQuery setDescription(String description)
           
 MetricUpdateQuery setDomain(String domain)
           
 MetricUpdateQuery setName(String name)
           
 MetricUpdateQuery setType(String type)
           
static MetricUpdateQuery update(String key)
           
 
Methods inherited from class org.sonar.wsclient.services.AbstractQuery
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

update

public static MetricUpdateQuery update(String key)

setName

public MetricUpdateQuery setName(String name)

setDescription

public MetricUpdateQuery setDescription(String description)

setDomain

public MetricUpdateQuery setDomain(String domain)

setType

public MetricUpdateQuery setType(String type)

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)

getBody

public String getBody()
Property description transmitted through request body as content may exceed URL size allowed by the server.

Overrides:
getBody in class AbstractQuery<Metric>

getModelClass

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


Copyright © 2009-2014 SonarSource. All Rights Reserved.