@ProviderType public interface TestandtargetHttpClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
TestandtargetHttpClient.TestandtargetMethodType
Http method used in the API call
|
static class |
TestandtargetHttpClient.TestandtargetSolution
Solution to be called either Target or Target Recommendations
|
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String[] queryKey,
String[] queryValues)
Executes a GET request with the provided query keys/values on the
configured Adobe Target API URL.
|
String |
execute(TestandtargetHttpClient.TestandtargetMethodType callMethod,
TestandtargetHttpClient.TestandtargetSolution solution,
TestandtargetHttpParameters parameters)
Executes a request using the provided query keys and values on the configured Adobe Target API URL
|
String |
executeRestCall(TestandtargetCallOptions options)
Executes a call against the Adobe Target REST API
|
String |
executeRestCall(TestandtargetHttpClient.TestandtargetMethodType callMethod,
String clientCode,
String location,
TestandtargetHttpClient.TestandtargetSolution solution,
TestandtargetHttpParameters parameters)
Executes a call against the Adobe Target REST API
|
String |
executeRestGetCall(String clientCode,
String location,
Map<String,String> parameters)
Executes a GET request against the Adobe Target REST API
|
String |
executeRestGetCall(TestandtargetCallOptions options)
Executes a GET request against the Adobe Target REST API
|
int |
getConnectionTimeout()
Returns the configured timeout in milliseconds until a connection is
established.
|
int |
getSocketTimeout()
Returns the configured timeout in milliseconds, which is the timeout for
waiting for data or a maximum period of inactivity between two consecutive
data packets.
|
String execute(String[] queryKey, String[] queryValues) throws TestandtargetException
queryKey - Query keysqueryValues - Query valuesTestandtargetException - TestandtargetExceptionString executeRestGetCall(String clientCode, String location, Map<String,String> parameters) throws TestandtargetException
clientCode - the clientCode to use, used to discover the T&T endpoint to uselocation - the location to request, for instance segments/1.jsonparameters - query parametersTestandtargetException - TestandtargetExceptionString executeRestGetCall(TestandtargetCallOptions options) throws TestandtargetException
options - a TestandtargetCallOptions object containing the
call optionsTestandtargetException - TestandtargetExceptionString execute(TestandtargetHttpClient.TestandtargetMethodType callMethod, TestandtargetHttpClient.TestandtargetSolution solution, TestandtargetHttpParameters parameters) throws TestandtargetException
callMethod - - a TestandtargetHttpClient.TestandtargetMethodType indicating the method to be executed for the call (GET, POST, PUT or DELETE)solution - - the solution to be called, either Target or Target Recommendationsparameters - - a TestandtargetHttpParameters containing the call parametersTestandtargetException - TestandtargetExceptionString executeRestCall(TestandtargetHttpClient.TestandtargetMethodType callMethod, String clientCode, String location, TestandtargetHttpClient.TestandtargetSolution solution, TestandtargetHttpParameters parameters) throws TestandtargetException
callMethod - - a TestandtargetHttpClient.TestandtargetMethodType indicating the method to be executed for the call (GET, POST, PUT or DELETE)clientCode - the clientCode to use, used to discover the T& T endpoint to uselocation - the location to request, for instance segments/1.jsonsolution - - the solution to be called, either Target or Target Recommendationsparameters - - a TestandtargetHttpParameters containing the call parametersTestandtargetException - TestandtargetExceptionString executeRestCall(TestandtargetCallOptions options) throws TestandtargetException
options - a TestandtargetCallOptions object containing the
call optionsString representation of the API response.TestandtargetException - TestandtargetExceptionint getConnectionTimeout()
int getSocketTimeout()
Copyright © 2010 - 2020 Adobe. All Rights Reserved