public class HttpConnectorDefault extends Object implements WeiXinHttpConnector
DEFAULT_BEAN_NAME
Constructor and Description |
---|
HttpConnectorDefault() |
Modifier and Type | Method and Description |
---|---|
String |
getUrl(String url)
用get方式访问微信URL
|
HttpVisitor |
getVisitor() |
String |
postUrl(String url,
String content,
WeiXinCert cert)
用post方式访问微信URL
|
void |
setVisitor(HttpVisitor visitor) |
String |
upload(String url,
WeiXinHttpUpload upload)
上传文件
|
public HttpVisitor getVisitor()
public void setVisitor(HttpVisitor visitor)
public String getUrl(String url)
WeiXinHttpConnector
getUrl
in interface WeiXinHttpConnector
url
- 要访问的微信URLpublic String postUrl(String url, String content, WeiXinCert cert)
WeiXinHttpConnector
postUrl
in interface WeiXinHttpConnector
url
- 要访问的微信URLpublic String upload(String url, WeiXinHttpUpload upload)
WeiXinHttpConnector
upload
in interface WeiXinHttpConnector
Copyright © 2006–2018 TinyGroup. All rights reserved.