@ProviderType
public interface EndpointService
@Reference(target="(id=yourEndpointId)")private EndpointService endpointService;
| Modifier and Type | Method and Description |
|---|---|
String[] |
getConfigServiceSpecificHeaders()
Gets the headers that are set via the configuration.
|
String |
getId()
The id of the endpoint that is defined via the configuration
|
String |
getMethod()
The method of the endpoint that is defined via the configuration
|
String |
getUrl()
The url of the endpoint that is defined via the configuration
|
boolean |
isConnected()
This is a test for the connection to the endpoint.
|
com.google.gson.JsonObject |
performIO_Action()
Performs the action connected to the endpoint.
|
com.google.gson.JsonObject |
performIO_Action(com.google.gson.JsonObject payload)
Performs the action connected to the endpoint with the specified payload.
|
com.google.gson.JsonObject |
performIO_Action(Map<String,String> queryParameters)
Performs the action connected to the endpoint, with the specified queryParameters.
|
com.google.gson.JsonObject |
performIO_Action(String url,
String method,
String[] headers,
com.google.gson.JsonObject payload)
Performs the action connected to the endpoint.
|
String getId()
String getMethod()
String getUrl()
com.google.gson.JsonObject performIO_Action()
com.google.gson.JsonObject performIO_Action(String url, String method, String[] headers, com.google.gson.JsonObject payload)
url - the url of the api call, the url can include queryparametermethod - the method of the api call, like GET or POSTheaders - headers that need to passed to the api, on top of the authentication headerspayload - an optional payload for the api-callcom.google.gson.JsonObject performIO_Action(Map<String,String> queryParameters)
queryParameters - query parameters to pass to the endpointcom.google.gson.JsonObject performIO_Action(com.google.gson.JsonObject payload)
payload - JsonObject containing the data that is used in the actionboolean isConnected()
String[] getConfigServiceSpecificHeaders()
Copyright © 2013–2020 Adobe. All rights reserved.