Class ForexFactoryIntegrationClient

java.lang.Object
com.bluebell.greenhouse.sol.client.AbstractClient
com.bluebell.greenhouse.sol.client.forexfactory.ForexFactoryIntegrationClient
All Implemented Interfaces:
GetClient, IntegrationClient, PostClient

@Component("forexFactoryIntegrationClient") public class ForexFactoryIntegrationClient extends AbstractClient implements IntegrationClient, GetClient
Web client that interfaces with the forex factor API.
Version:
1.0.9
Author:
Stephen Prizio
  • Constructor Details

    • ForexFactoryIntegrationClient

      public ForexFactoryIntegrationClient()
  • Method Details

    • get

      public String get(String url, @NonNull @NonNull org.springframework.util.MultiValueMap<String,String> queryParams, int timeoutMs)
      Returns a JSON string for the given url and query params using the supplied timeout.
      Specified by:
      get in interface IntegrationClient
      Parameters:
      url - endpoint urls
      queryParams - query parameters
      timeoutMs - request timeout in milliseconds
      Returns:
      String
    • 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:
      post in interface IntegrationClient
      Parameters:
      url - endpoint url
      headers - request headers
      queryParams - query parameters
      body - request body
      timeoutMs - request timeout in milliseconds
      Returns:
      response body