public abstract class RestClient extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT_TIMEZONE |
static String |
DATE_FORMAT_Z |
static String |
DATE_FORMAT_Z_TIMEZONE |
static String |
DATE_ONLY_FORMAT |
protected static com.google.common.base.Joiner |
JOINER |
protected static javax.ws.rs.core.GenericType<MarketoResponse<Map<String,Object>>> |
RESPONSE_MAP_GENERIC_TYPE |
protected static javax.ws.rs.core.GenericType<MarketoResponse<ServiceResponse>> |
SERVICE_RESPONSE_GENERIC_TYPE |
protected static com.google.common.base.Function<Map<String,Object>,String> |
SINGLE_ENTRY_MAP_TO_STRING |
protected static javax.ws.rs.core.GenericType<MarketoResponse<Void>> |
VOID_GENERIC_TYPE |
Constructor and Description |
---|
RestClient(RestClientConfigProvider restClientConfigProvider) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.client.Invocation |
buildGetInvocation(javax.ws.rs.client.WebTarget target) |
protected javax.ws.rs.client.Invocation |
buildPostInvocation(javax.ws.rs.client.WebTarget target) |
protected javax.ws.rs.client.Invocation |
buildPostInvocation(javax.ws.rs.client.WebTarget target,
org.glassfish.jersey.media.multipart.FormDataMultiPart multiPartEntity) |
protected javax.ws.rs.client.Invocation |
buildPostInvocation(javax.ws.rs.client.WebTarget target,
org.json.JSONObject jsonObject) |
protected javax.ws.rs.client.Invocation |
buildPostInvocation(javax.ws.rs.client.WebTarget target,
Map<String,String> body) |
protected javax.ws.rs.client.WebTarget |
bulkWebTarget() |
protected <T> MarketoResponse<T> |
process(javax.ws.rs.client.Invocation request,
javax.ws.rs.core.GenericType<MarketoResponse<T>> type) |
protected void |
putIfNotNull(com.google.common.collect.ImmutableMap.Builder<String,String> builder,
String key,
Object value) |
protected javax.ws.rs.client.WebTarget |
queryParamIfNotNull(javax.ws.rs.client.WebTarget target,
String name,
Object value) |
protected javax.ws.rs.client.WebTarget |
webTarget() |
public static final String DATE_FORMAT_Z_TIMEZONE
public static final String DATE_FORMAT_Z
public static final String DATE_ONLY_FORMAT
public static final String DATE_FORMAT_TIMEZONE
protected static final com.google.common.base.Joiner JOINER
protected static final com.google.common.base.Function<Map<String,Object>,String> SINGLE_ENTRY_MAP_TO_STRING
protected static final javax.ws.rs.core.GenericType<MarketoResponse<Void>> VOID_GENERIC_TYPE
protected static final javax.ws.rs.core.GenericType<MarketoResponse<ServiceResponse>> SERVICE_RESPONSE_GENERIC_TYPE
protected static final javax.ws.rs.core.GenericType<MarketoResponse<Map<String,Object>>> RESPONSE_MAP_GENERIC_TYPE
public RestClient(RestClientConfigProvider restClientConfigProvider)
protected javax.ws.rs.client.Invocation buildGetInvocation(javax.ws.rs.client.WebTarget target)
protected javax.ws.rs.client.Invocation buildPostInvocation(javax.ws.rs.client.WebTarget target)
protected javax.ws.rs.client.Invocation buildPostInvocation(javax.ws.rs.client.WebTarget target, org.json.JSONObject jsonObject)
protected javax.ws.rs.client.Invocation buildPostInvocation(javax.ws.rs.client.WebTarget target, Map<String,String> body)
protected javax.ws.rs.client.Invocation buildPostInvocation(javax.ws.rs.client.WebTarget target, org.glassfish.jersey.media.multipart.FormDataMultiPart multiPartEntity)
protected final javax.ws.rs.client.WebTarget webTarget()
protected final javax.ws.rs.client.WebTarget bulkWebTarget()
protected final <T> MarketoResponse<T> process(javax.ws.rs.client.Invocation request, javax.ws.rs.core.GenericType<MarketoResponse<T>> type)
protected javax.ws.rs.client.WebTarget queryParamIfNotNull(@NotNull javax.ws.rs.client.WebTarget target, @NotNull String name, @Nullable Object value)
Copyright © 2010–2016. All rights reserved.