Q - the child class that extends this abstract classR - the type the child class' execute()-function returnsS - the shard type the child class acceptspublic abstract class ShardQuery<Q extends ShardQuery,R,S extends Shard> extends APIQuery<Q,R>
| Modifier and Type | Field and Description |
|---|---|
protected S[] |
shards
See shards(...).
|
generalRateLimiter, resourceValueuserAgent| Constructor and Description |
|---|
ShardQuery(IXmlConverter xmlConverter,
IRateLimiter generalRateLimiter,
IRateLimiter scrapingRateLimiter,
String baseUrl,
String userAgent,
int apiVersion,
String resourceValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
Q |
shards(S... shards)
Sets the shards.
|
execute, getRateLimiter, resourceString, slowMode, validateQueryParameterscloseInputStreamQuietly, execute, makeRequest, translateResponsepublic ShardQuery(IXmlConverter xmlConverter, IRateLimiter generalRateLimiter, IRateLimiter scrapingRateLimiter, String baseUrl, String userAgent, int apiVersion, String resourceValue)
xmlConverter - generalRateLimiter - scrapingRateLimiter - baseUrl - userAgent - apiVersion - resourceValue - the resource valuepublic final Q shards(S... shards)
shards - the shards to setprotected String buildURL()
AbstractQuerybuildURL in class APIQuery<Q extends ShardQuery,R>Copyright © 2017. All rights reserved.