public class EventQuery extends Query<Event>
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL |
DEFAULT_TIMEOUT_MILLISECONDS| Constructor and Description |
|---|
EventQuery() |
EventQuery(String resourceKey) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCategories() |
Date |
getFrom() |
Class<Event> |
getModelClass() |
String |
getResourceKey() |
Date |
getTo() |
String |
getUrl()
Must start with a slash, for example: /api/metrics
|
boolean |
isIncludeFromTime() |
boolean |
isIncludeToTime() |
EventQuery |
setCategories(String[] categories) |
EventQuery |
setFrom(Date fromDate,
boolean includeTime) |
EventQuery |
setResourceKey(String resourceKey) |
EventQuery |
setTo(Date toDate,
boolean includeTime) |
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMillisecondspublic static final String BASE_URL
public EventQuery()
public EventQuery(String resourceKey)
public EventQuery setFrom(Date fromDate, boolean includeTime)
public boolean isIncludeFromTime()
public EventQuery setTo(Date toDate, boolean includeTime)
public boolean isIncludeToTime()
public String getResourceKey()
public EventQuery setResourceKey(String resourceKey)
public String[] getCategories()
public EventQuery setCategories(String[] categories)
public String getUrl()
AbstractQueryIMPORTANT: In implementations of this method we must use helper methods to construct URL.
public Class<Event> getModelClass()
getModelClass in class Query<Event>Copyright © 2009-2012 SonarSource. All Rights Reserved.