public class AbstractMethod extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected HttpTools |
httpTools |
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
| Constructor and Description |
|---|
AbstractMethod(String apiKey,
HttpTools httpTools)
Default constructor for the methods
|
| Modifier and Type | Method and Description |
|---|---|
protected ResultList<ChangeKeyItem> |
getMediaChanges(int mediaID,
String startDate,
String endDate)
Look up the media's changes by ID
|
protected static com.fasterxml.jackson.core.type.TypeReference |
getTypeReference(Class aClass)
Helper function to get a pre-generated TypeReference for a class
|
protected <T> WrapperGenericList<T> |
processWrapper(com.fasterxml.jackson.core.type.TypeReference typeRef,
URL url,
String errorMessageSuffix)
Process the wrapper list and return the whole wrapper
|
protected <T> List<T> |
processWrapperList(com.fasterxml.jackson.core.type.TypeReference typeRef,
URL url,
String errorMessageSuffix)
Process the wrapper list and return the results
|
protected final String apiKey
protected final HttpTools httpTools
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
protected static com.fasterxml.jackson.core.type.TypeReference getTypeReference(Class aClass) throws MovieDbException
aClass - MovieDbExceptionprotected <T> List<T> processWrapperList(com.fasterxml.jackson.core.type.TypeReference typeRef, URL url, String errorMessageSuffix) throws MovieDbException
T - Type of list to processtypeRef - url - URL of the page (Error output only)errorMessageSuffix - Error message to output (Error output only)MovieDbExceptionprotected <T> WrapperGenericList<T> processWrapper(com.fasterxml.jackson.core.type.TypeReference typeRef, URL url, String errorMessageSuffix) throws MovieDbException
T - Type of list to processtypeRef - url - URL of the page (Error output only)errorMessageSuffix - Error message to output (Error output only)MovieDbExceptionprotected ResultList<ChangeKeyItem> getMediaChanges(int mediaID, String startDate, String endDate) throws MovieDbException
mediaID - startDate - endDate - MovieDbExceptionCopyright © 2012–2017. All rights reserved.