public class HttpConnectorDefault extends Object implements WeiXinHttpConnector
DEFAULT_BEAN_NAME
Constructor and Description |
---|
HttpConnectorDefault() |
Modifier and Type | Method and Description |
---|---|
String |
getRequestCharset() |
String |
getResponseCharset() |
int |
getTimeout() |
String |
getUrl(String url)
用get方式访问微信URL
|
protected void |
init() |
String |
postUrl(String url,
String content,
WeiXinCert cert)
用post方式访问微信URL
|
void |
setRequestCharset(String requestCharset) |
void |
setResponseCharset(String responseCharset) |
void |
setTimeout(int timeout) |
String |
upload(String url,
WeiXinHttpUpload upload)
上传文件
|
protected void init()
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 getResponseCharset()
public void setResponseCharset(String responseCharset)
public String getRequestCharset()
public void setRequestCharset(String requestCharset)
public int getTimeout()
public void setTimeout(int timeout)
public String upload(String url, WeiXinHttpUpload upload)
WeiXinHttpConnector
upload
in interface WeiXinHttpConnector
Copyright © 2006–2018 TinyGroup. All rights reserved.