public class WxOpenServiceApacheHttpClientImpl extends WxOpenServiceAbstractImpl<org.apache.http.impl.client.CloseableHttpClient,org.apache.http.HttpHost>
构造器和说明 |
---|
WxOpenServiceApacheHttpClientImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
get(String url,
String queryParam)
当本Service没有实现某个API的时候,可以用这个,针对所有微信API中的GET请求
|
org.apache.http.impl.client.CloseableHttpClient |
getRequestHttpClient() |
org.apache.http.HttpHost |
getRequestHttpProxy() |
HttpType |
getRequestType() |
void |
initHttp()
初始化 RequestHttp.
|
String |
post(String url,
String postData)
当本Service没有实现某个API的时候,可以用这个,针对所有微信API中的POST请求
|
WxMinishopImageUploadResult |
uploadMinishopMediaFile(String url,
File file) |
execute, getWxOpenComponentService, getWxOpenConfigStorage, setWxOpenConfigStorage
public void initHttp()
WxOpenServiceAbstractImpl
initHttp
在类中 WxOpenServiceAbstractImpl<org.apache.http.impl.client.CloseableHttpClient,org.apache.http.HttpHost>
public org.apache.http.impl.client.CloseableHttpClient getRequestHttpClient()
public org.apache.http.HttpHost getRequestHttpProxy()
public HttpType getRequestType()
public String get(String url, String queryParam) throws WxErrorException
WxOpenService
url
- the urlqueryParam
- the query paramWxErrorException
- the wx error exceptionpublic String post(String url, String postData) throws WxErrorException
WxOpenService
url
- the urlpostData
- the post dataWxErrorException
- the wx error exceptionpublic WxMinishopImageUploadResult uploadMinishopMediaFile(String url, File file) throws WxErrorException
WxErrorException
Copyright © 2024. All rights reserved.