org.sonar.wsclient.services
Class PropertyCreateQuery
java.lang.Object
org.sonar.wsclient.services.AbstractQuery<MODEL>
org.sonar.wsclient.services.CreateQuery<Property>
org.sonar.wsclient.services.PropertyCreateQuery
public class PropertyCreateQuery
- extends CreateQuery<Property>
- Since:
- 2.6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyCreateQuery
public PropertyCreateQuery()
PropertyCreateQuery
public PropertyCreateQuery(String key,
String value)
PropertyCreateQuery
public PropertyCreateQuery(String key,
String value,
String resourceKeyOrId)
PropertyCreateQuery
public PropertyCreateQuery(Property property)
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-2011 SonarSource. All Rights Reserved.