public final class VerifyQuery extends APIQuery<VerifyQuery,Boolean>
generalRateLimiter, resourceValueuserAgent| Constructor and Description |
|---|
VerifyQuery(IXmlConverter xmlConverter,
IRateLimiter generalRateLimiter,
IRateLimiter scrapingRateLimiter,
String baseUrl,
String userAgent,
int apiVersion,
String nation,
String code)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
protected String |
resourceString()
Gives the resource string of this Query, e.g.
|
VerifyQuery |
token(String token)
Use an application-specific token.
|
protected <T> T |
translateResponse(InputStream response,
Class<T> type)
Translates the stream response to the object this Query wishes to return
via its execute() function.
|
protected void |
validateQueryParameters()
Validates the query parameters before executing the query.
|
execute, getRateLimiter, slowModecloseInputStreamQuietly, execute, makeRequestpublic VerifyQuery(IXmlConverter xmlConverter, IRateLimiter generalRateLimiter, IRateLimiter scrapingRateLimiter, String baseUrl, String userAgent, int apiVersion, String nation, String code)
xmlConverter - generalRateLimiter - scrapingRateLimiter - baseUrl - userAgent - apiVersion - nation - the nation to verifycode - the verification codepublic final VerifyQuery token(String token)
token - application-specific tokenprotected String resourceString()
APIQueryresourceString in class APIQuery<VerifyQuery,Boolean>protected void validateQueryParameters()
AbstractQueryvalidateQueryParameters in class APIQuery<VerifyQuery,Boolean>protected <T> T translateResponse(InputStream response, Class<T> type)
AbstractQuerytranslateResponse in class AbstractQuery<VerifyQuery,Boolean>T - type to parse toresponse - the response to translatetype - type to parse toprotected String buildURL()
AbstractQuerybuildURL in class APIQuery<VerifyQuery,Boolean>Copyright © 2017. All rights reserved.