Interface IHttpTransportProvider

All Known Implementing Classes:
HttpAccessTransport

public interface IHttpTransportProvider
  • Field Details

  • Method Details

    • doPost

      String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest)
      make POST request on given url with params and headers
      Parameters:
      strUrl - url to call
      mapParams - params to post
      mapHeadersRequest - headers of the request
      Returns:
      response body as String
    • doPostJSON

      <T> T doPostJSON(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper)
      make POST request on given url with params and headers of a JSON object to retrieve another JSON
      Type Parameters:
      T - of the response
      Parameters:
      strUrl - url to call
      mapParams - params to post
      mapHeadersRequest - headers of the request
      json - JSON object to post
      responseJsonClass - the class
      mapper - mapper for JSON serialize / deserialize
      Returns:
      response