public class PropertyCreateQuery extends CreateQuery<Property>
DEFAULT_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
PropertyCreateQuery() |
PropertyCreateQuery(Property property) |
PropertyCreateQuery(String key,
String value) |
PropertyCreateQuery(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() |
PropertyCreateQuery |
setKey(String key) |
PropertyCreateQuery |
setResourceKeyOrId(String resourceKeyOrId) |
PropertyCreateQuery |
setValue(String value) |
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public PropertyCreateQuery()
public PropertyCreateQuery(String key, String value)
public PropertyCreateQuery(String key, String value, String resourceKeyOrId)
public PropertyCreateQuery(Property property)
public PropertyCreateQuery setKey(String key)
public PropertyCreateQuery setValue(String value)
public String getResourceKeyOrId()
public PropertyCreateQuery 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 CreateQuery<Property>
Copyright © 2009-2012 SonarSource. All Rights Reserved.