public class WeiXinConnectorDefault extends Object implements WeiXinConnector
ACCESS_TOKEN, DEFAULT_BEAN_NAME
Constructor and Description |
---|
WeiXinConnectorDefault() |
Modifier and Type | Method and Description |
---|---|
AccessToken |
getAccessToken()
获取微信验证令牌
|
Client |
getClient()
获取当前的管理号客户端信息
|
JsApiTicket |
getJsApiTicket()
获得微信的JS访问票据
|
WeiXinReceiver |
getWeiXinReceiver()
获得微信消息接收者,负责解析微信服务器推送过来的消息
|
WeiXinSender |
getWeiXinSender()
获得微信消息发送者,负责往微信服务器发送消息
|
WeiXinSessionManager |
getWeiXinSessionManager()
获取微信的会话管理者
|
void |
receive(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
接收微信消息
|
void |
send(ToServerMessage message)
发送微信消息
|
void |
setClient(Client client) |
void |
setWeiXinReceiver(WeiXinReceiver weiXinReceiver) |
void |
setWeiXinSender(WeiXinSender weiXinSender) |
void |
setWeiXinSessionManager(WeiXinSessionManager weiXinSessionManager) |
void |
upload(WeiXinHttpUpload upload)
上传微信文件
|
public Client getClient()
WeiXinConnector
getClient
in interface WeiXinConnector
public void setClient(Client client)
public WeiXinReceiver getWeiXinReceiver()
WeiXinConnector
getWeiXinReceiver
in interface WeiXinConnector
public void setWeiXinReceiver(WeiXinReceiver weiXinReceiver)
public WeiXinSender getWeiXinSender()
WeiXinConnector
getWeiXinSender
in interface WeiXinConnector
public void setWeiXinSender(WeiXinSender weiXinSender)
public WeiXinSessionManager getWeiXinSessionManager()
WeiXinConnector
getWeiXinSessionManager
in interface WeiXinConnector
public void setWeiXinSessionManager(WeiXinSessionManager weiXinSessionManager)
public AccessToken getAccessToken()
WeiXinConnector
getAccessToken
in interface WeiXinConnector
public JsApiTicket getJsApiTicket()
WeiXinConnector
getJsApiTicket
in interface WeiXinConnector
public void send(ToServerMessage message)
WeiXinConnector
send
in interface WeiXinConnector
public void upload(WeiXinHttpUpload upload)
WeiXinConnector
upload
in interface WeiXinConnector
public void receive(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
WeiXinConnector
receive
in interface WeiXinConnector
Copyright © 2006–2018 TinyGroup. All rights reserved.