@Deprecated public class ViolationQuery extends Query<Violation>
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL
Deprecated.
|
DEFAULT_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
ViolationQuery(String resourceKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ViolationQuery |
createForResource(Resource resource)
Deprecated.
|
static ViolationQuery |
createForResource(String resourceIdOrKey)
Deprecated.
|
int |
getDepth()
Deprecated.
|
Integer |
getLimit()
Deprecated.
|
Class<Violation> |
getModelClass()
Deprecated.
|
String[] |
getPriorities()
Deprecated.
since 2.5 use
getSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829 |
String[] |
getQualifiers()
Deprecated.
|
String[] |
getRuleKeys()
Deprecated.
|
String[] |
getSeverities()
Deprecated.
|
String |
getUrl()
Deprecated.
Must start with a slash, for example: /api/metrics
|
ViolationQuery |
setDepth(int depth)
Deprecated.
|
ViolationQuery |
setLimit(Integer limit)
Deprecated.
|
ViolationQuery |
setPriorities(String... priorities)
Deprecated.
since 2.5 use
setSeverities(String...) instead. See http://jira.codehaus.org/browse/SONAR-1829 |
ViolationQuery |
setQualifiers(String... qualifiers)
Deprecated.
|
ViolationQuery |
setRuleKeys(String... ruleKeys)
Deprecated.
|
ViolationQuery |
setSeverities(String... severities)
Deprecated.
|
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public static final String BASE_URL
public ViolationQuery(String resourceKey)
public String[] getQualifiers()
public ViolationQuery setQualifiers(String... qualifiers)
public String[] getRuleKeys()
public ViolationQuery setRuleKeys(String... ruleKeys)
public String[] getSeverities()
public ViolationQuery setSeverities(String... severities)
@Deprecated public String[] getPriorities()
getSeverities()
instead. See http://jira.codehaus.org/browse/SONAR-1829@Deprecated public ViolationQuery setPriorities(String... priorities)
setSeverities(String...)
instead. See http://jira.codehaus.org/browse/SONAR-1829public int getDepth()
public ViolationQuery setDepth(int depth)
public ViolationQuery setLimit(Integer limit)
public String getUrl()
AbstractQuery
IMPORTANT: In implementations of this method we must use helper methods to construct URL.
public Class<Violation> getModelClass()
getModelClass
in class Query<Violation>
public static ViolationQuery createForResource(Resource resource)
public static ViolationQuery createForResource(String resourceIdOrKey)
Copyright © 2009-2013 SonarSource. All Rights Reserved.