public class PropertyUpdateQuery extends UpdateQuery<Property>
DEFAULT_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
PropertyUpdateQuery() |
PropertyUpdateQuery(Property property) |
PropertyUpdateQuery(String key,
String value) |
PropertyUpdateQuery(String key,
String value,
String resourceKeyOrId) |
Modifier and Type | Method and Description |
---|---|
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) |
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public PropertyUpdateQuery()
public PropertyUpdateQuery(String key, String value)
public PropertyUpdateQuery(String key, String value, String resourceKeyOrId)
public PropertyUpdateQuery(Property property)
public PropertyUpdateQuery setKey(String key)
public PropertyUpdateQuery setValue(String value)
public String getResourceKeyOrId()
public PropertyUpdateQuery setResourceKeyOrId(String resourceKeyOrId)
public String getUrl()
AbstractQuery
IMPORTANT: In implementations of this method we must use helper methods to construct URL.
public String getBody()
getBody
in class AbstractQuery<Property>
public Class<Property> getModelClass()
getModelClass
in class UpdateQuery<Property>
Copyright © 2009-2012 SonarSource. All Rights Reserved.