org.sonar.wsclient.services
Class PropertyUpdateQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<M>
      extended by org.sonar.wsclient.services.UpdateQuery<Property>
          extended by org.sonar.wsclient.services.PropertyUpdateQuery

public class PropertyUpdateQuery
extends UpdateQuery<Property>

Since:
2.6

Field Summary
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Constructor Summary
PropertyUpdateQuery()
           
PropertyUpdateQuery(Property property)
           
PropertyUpdateQuery(String key, String value)
           
PropertyUpdateQuery(String key, String value, String resourceKeyOrId)
           
 
Method Summary
 String getBody()
          Property value is transmitted through request body as content may exceed URL size allowed by the server.
 String getKey()
           
 Class<Property> getModelClass()
           
 String getResourceKeyOrId()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 String getValue()
           
 PropertyUpdateQuery setKey(String key)
           
 PropertyUpdateQuery setResourceKeyOrId(String resourceKeyOrId)
           
 PropertyUpdateQuery setValue(String value)
           
 
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
 

Constructor Detail

PropertyUpdateQuery

public PropertyUpdateQuery()

PropertyUpdateQuery

public PropertyUpdateQuery(String key,
                           String value)

PropertyUpdateQuery

public PropertyUpdateQuery(String key,
                           String value,
                           String resourceKeyOrId)

PropertyUpdateQuery

public PropertyUpdateQuery(Property property)
Method Detail

getKey

public String getKey()

setKey

public PropertyUpdateQuery setKey(String key)

getValue

public String getValue()

setValue

public PropertyUpdateQuery setValue(String value)

getResourceKeyOrId

public String getResourceKeyOrId()

setResourceKeyOrId

public PropertyUpdateQuery setResourceKeyOrId(String resourceKeyOrId)

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<Property>
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 value is transmitted through request body as content may exceed URL size allowed by the server.

Overrides:
getBody in class AbstractQuery<Property>

getModelClass

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


Copyright © 2009-2013 SonarSource. All Rights Reserved.