org.sonar.wsclient.services
Class PropertyCreateQuery

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.PropertyCreateQuery

public class PropertyCreateQuery
extends CreateQuery<Property>

Since:
2.6

Field Summary
 
Fields inherited from class org.sonar.wsclient.services.AbstractQuery
DEFAULT_TIMEOUT_MILLISECONDS
 
Constructor Summary
PropertyCreateQuery()
           
PropertyCreateQuery(Property property)
           
PropertyCreateQuery(String key, String value)
           
PropertyCreateQuery(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()
           
 PropertyCreateQuery setKey(String key)
           
 PropertyCreateQuery setResourceKeyOrId(String resourceKeyOrId)
           
 PropertyCreateQuery 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

PropertyCreateQuery

public PropertyCreateQuery()

PropertyCreateQuery

public PropertyCreateQuery(String key,
                           String value)

PropertyCreateQuery

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

PropertyCreateQuery

public PropertyCreateQuery(Property property)
Method Detail

getKey

public String getKey()

setKey

public PropertyCreateQuery setKey(String key)

getValue

public String getValue()

setValue

public PropertyCreateQuery setValue(String value)

getResourceKeyOrId

public String getResourceKeyOrId()

setResourceKeyOrId

public PropertyCreateQuery 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 CreateQuery<Property>


Copyright © 2009-2014 SonarSource. All Rights Reserved.