Interface IntegrationClient
- All Known Implementing Classes:
ArticleMetadataClient, EODIntegrationClient, FirstRateDataIntegrationClient, ForexFactoryIntegrationClient, OpenAIIntegrationClient, SymbolAnalysisIntegrationClient
public interface IntegrationClient
Defines how API clients should be interfacing with their external web services.
- Version:
- 1.0.9
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns a JSON string for the given url and query params.Returns a JSON string for the given url and query params using the supplied timeout.default Stringpost(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body) Returns a JSON string for the given url, headers, query params and request body.post(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body, int timeoutMs) Returns a JSON string for the given url, headers, query params and request body using the supplied timeout.
-
Method Details
-
get
-
get
String get(String url, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Returns a JSON string for the given url and query params using the supplied timeout.- Parameters:
url- endpoint urlsqueryParams- query parameterstimeoutMs- request timeout in milliseconds- Returns:
String
-
post
default String post(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body) Returns a JSON string for the given url, headers, query params and request body.- Parameters:
url- endpoint urlheaders- request headersqueryParams- query parametersbody- request body- Returns:
String
-
post
String post(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body, int timeoutMs) Returns a JSON string for the given url, headers, query params and request body using the supplied timeout.- Parameters:
url- endpoint urlheaders- request headersqueryParams- query parametersbody- request bodytimeoutMs- request timeout in milliseconds- Returns:
String
-