Class WeChatPayHttpClient
java.lang.Object
de.hybris.platform.chinesepspwechatpayservices.wechatpay.WeChatPayHttpClient
A wrapper around Apache Common HttpClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProcess a GET requestintintProcess a POST request
-
Constructor Details
-
WeChatPayHttpClient
public WeChatPayHttpClient(int maxConnPerRoute, int maxConnTotal)
-
-
Method Details
-
post
Process a POST request- Parameters:
url- URL of the post targetrequestBody- body of the request, MUST be XML format- Returns:
- the request response
-
get
Process a GET request- Parameters:
url- URL of the get target- Returns:
- the request response
-
getMaxConnPerRoute
public int getMaxConnPerRoute() -
getMaxConnTotal
public int getMaxConnTotal()
-