java.lang.Object
de.hybris.platform.chinesepspwechatpayservices.wechatpay.WeChatPayHttpClient

public class WeChatPayHttpClient extends Object
A wrapper around Apache Common HttpClient
  • Constructor Details

    • WeChatPayHttpClient

      public WeChatPayHttpClient(int maxConnPerRoute, int maxConnTotal)
  • Method Details

    • post

      public String post(String url, String requestBody)
      Process a POST request
      Parameters:
      url - URL of the post target
      requestBody - body of the request, MUST be XML format
      Returns:
      the request response
    • get

      public String get(String url)
      Process a GET request
      Parameters:
      url - URL of the get target
      Returns:
      the request response
    • getMaxConnPerRoute

      public int getMaxConnPerRoute()
    • getMaxConnTotal

      public int getMaxConnTotal()