public abstract class APIResource extends ShippoObject
| Modifier and Type | Class and Description |
|---|---|
protected static class |
APIResource.RequestMethod |
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET |
PRETTY_PRINT_GSON| Constructor and Description |
|---|
APIResource() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> T |
_request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey) |
protected static String |
classURL(Class<?> clazz) |
protected static String |
classURLWithTrailingSlash(Class<?> clazz) |
protected static String |
instanceURL(Class<?> clazz,
String id) |
protected static <T> T |
request(APIResource.RequestMethod method,
String url,
Map<String,Object> params,
Class<T> clazz,
String apiKey) |
protected static String |
singleClassURL(Class<?> clazz) |
protected static String |
urlEncode(String str) |
toStringpublic static final String CHARSET
protected static String instanceURL(Class<?> clazz, String id) throws InvalidRequestException
InvalidRequestExceptionprotected static String urlEncode(String str) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected static <T> T request(APIResource.RequestMethod method, String url, Map<String,Object> params, Class<T> clazz, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, APIException
protected static <T> T _request(APIResource.RequestMethod method, String url, Map<String,Object> params, Class<T> clazz, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, APIException
Copyright © 2017 Shippo. All rights reserved.