@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 |
---|---|
java.lang.String |
execute(java.lang.String[] queryKey,
java.lang.String[] queryValues)
Executes a GET request with the provided query keys/values on the
configured Adobe Target API URL.
|
java.lang.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
|
java.lang.String |
executeRestCall(TestandtargetCallOptions options)
Executes a call against the Adobe Target REST API
|
java.lang.String |
executeRestCall(TestandtargetHttpClient.TestandtargetMethodType callMethod,
java.lang.String clientCode,
java.lang.String location,
TestandtargetHttpClient.TestandtargetSolution solution,
TestandtargetHttpParameters parameters)
Executes a call against the Adobe Target REST API
|
java.lang.String |
executeRestGetCall(java.lang.String clientCode,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> parameters)
Executes a GET request against the Adobe Target REST API
|
java.lang.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.
|
java.lang.String execute(java.lang.String[] queryKey, java.lang.String[] queryValues) throws TestandtargetException
queryKey
- Query keysqueryValues
- Query valuesTestandtargetException
- TestandtargetException
java.lang.String executeRestGetCall(java.lang.String clientCode, java.lang.String location, java.util.Map<java.lang.String,java.lang.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
- TestandtargetException
java.lang.String executeRestGetCall(TestandtargetCallOptions options) throws TestandtargetException
options
- a TestandtargetCallOptions
object containing the
call optionsTestandtargetException
- TestandtargetException
java.lang.String 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
- TestandtargetException
java.lang.String executeRestCall(TestandtargetHttpClient.TestandtargetMethodType callMethod, java.lang.String clientCode, java.lang.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
- TestandtargetException
java.lang.String executeRestCall(TestandtargetCallOptions options) throws TestandtargetException
options
- a TestandtargetCallOptions
object containing the
call optionsString
representation of the API response.TestandtargetException
- TestandtargetException
int getConnectionTimeout()
int getSocketTimeout()
Copyright © 2010 - 2020 Adobe. All Rights Reserved