Class EODIntegrationClient
java.lang.Object
com.bluebell.greenhouse.sol.client.AbstractClient
com.bluebell.greenhouse.sol.client.eod.EODIntegrationClient
- All Implemented Interfaces:
GetClient, IntegrationClient, PostClient
@Component("eodIntegrationClient")
public class EODIntegrationClient
extends AbstractClient
implements IntegrationClient, GetClient, PostClient
Integration client for EOD API calls.
- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a response body for the given GET request inputs.getResponse(String url, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Returns HTTP response metadata for the given GET request inputs.post(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body, int timeoutMs) POST is not supported by this client.Methods inherited from class AbstractClient
doGet, doGet, doGet, doGet, doGetResponse, doPost, doPost, downloadFileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GetClient
doGet, doGet, downloadFileMethods inherited from interface IntegrationClient
get, postMethods inherited from interface PostClient
doPost, doPost
-
Constructor Details
-
EODIntegrationClient
public EODIntegrationClient()
-
-
Method Details
-
get
public String get(String url, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Returns a response body for the given GET request inputs.- Specified by:
getin interfaceIntegrationClient- Parameters:
url- endpoint urlqueryParams- query parameterstimeoutMs- request timeout in milliseconds- Returns:
- response body
-
getResponse
public IntegrationHttpResponse getResponse(String url, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Returns HTTP response metadata for the given GET request inputs.- Parameters:
url- endpoint urlqueryParams- query parameterstimeoutMs- request timeout in milliseconds- Returns:
IntegrationHttpResponse
-
post
public String post(String url, org.springframework.http.HttpHeaders headers, org.springframework.util.MultiValueMap<String, String> queryParams, String body, int timeoutMs) POST is not supported by this client.- Specified by:
postin interfaceIntegrationClient- Parameters:
url- endpoint urlheaders- request headersqueryParams- query parametersbody- request bodytimeoutMs- request timeout in milliseconds- Returns:
- response body
-