Package com.foxinmy.weixin4j.mp.token
Class WeixinTicketCreator
- java.lang.Object
-
- com.foxinmy.weixin4j.token.TokenCreator
-
- com.foxinmy.weixin4j.mp.token.WeixinTicketCreator
-
- All Implemented Interfaces:
CacheCreator<Token>
public class WeixinTicketCreator extends TokenCreator
微信公众平台TICKET创建(包括jsticket、其它JSSDK所需的ticket的创建- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- JS TICKET
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.token.TokenCreator
CACHEKEY_PREFIX, weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description WeixinTicketCreator(TicketType ticketType, TokenManager weixinTokenManager)
jssdk
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
create()
创建CacheString
name()
返回缓存类型命名,如mp_tokenString
uniqueid()
返回缓存唯一标识,如appid-
Methods inherited from class com.foxinmy.weixin4j.token.TokenCreator
key
-
-
-
-
Constructor Detail
-
WeixinTicketCreator
public WeixinTicketCreator(TicketType ticketType, TokenManager weixinTokenManager)
jssdk- Parameters:
ticketType
- 票据类型weixinTokenManager
- 公众平台的access_token
-
-
Method Detail
-
name
public String name()
Description copied from class:TokenCreator
返回缓存类型命名,如mp_token- Specified by:
name
in classTokenCreator
- Returns:
-
uniqueid
public String uniqueid()
Description copied from class:TokenCreator
返回缓存唯一标识,如appid- Specified by:
uniqueid
in classTokenCreator
- Returns:
-
create
public Token create() throws WeixinException
Description copied from interface:CacheCreator
创建Cache- Returns:
- 缓存对象
- Throws:
WeixinException
-
-