org.sonar.wsclient.services
Class UserPropertyCreateQuery

java.lang.Object
  extended by org.sonar.wsclient.services.AbstractQuery<M>
      extended by org.sonar.wsclient.services.CreateQuery<Property>
          extended by org.sonar.wsclient.services.UserPropertyCreateQuery

public class UserPropertyCreateQuery
extends CreateQuery<Property>

Since:
2.2

Field Summary
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Constructor Summary
UserPropertyCreateQuery()
           
UserPropertyCreateQuery(Property property)
           
UserPropertyCreateQuery(String key, String value)
           
 
Method Summary
 String getKey()
           
 Class<Property> getModelClass()
           
 String getUrl()
          Must start with a slash, for example: /api/metrics
 String getValue()
           
 UserPropertyCreateQuery setKey(String key)
           
 UserPropertyCreateQuery setValue(String value)
           
 
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
 

Constructor Detail

UserPropertyCreateQuery

public UserPropertyCreateQuery()

UserPropertyCreateQuery

public UserPropertyCreateQuery(String key,
                               String value)

UserPropertyCreateQuery

public UserPropertyCreateQuery(Property property)
Method Detail

getKey

public String getKey()

setKey

public UserPropertyCreateQuery setKey(String key)

getValue

public String getValue()

setValue

public UserPropertyCreateQuery setValue(String value)

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)

getModelClass

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


Copyright © 2009-2013 SonarSource. All Rights Reserved.