public final class VerifyQuery extends APIQuery<VerifyQuery,Boolean>
rateLimiter, resourceValuelogger| Constructor and Description |
|---|
VerifyQuery(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 extends Boolean> |
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 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 extends Boolean> 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 © 2016. All rights reserved.