com.foxinmy.weixin4j.token
Class TokenCreator

java.lang.Object
  extended by com.foxinmy.weixin4j.token.TokenCreator
All Implemented Interfaces:
CacheCreator<Token>

public abstract class TokenCreator
extends Object
implements CacheCreator<Token>

Token的创建

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:

Field Summary
static String CACHEKEY_PREFIX
          缓存KEY前缀
 
Constructor Summary
TokenCreator()
           
 
Method Summary
 String key()
          缓存key:附加key前缀
abstract  String name()
          返回缓存类型命名,如mp_token
abstract  String uniqueid()
          返回缓存唯一标识,如appid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.foxinmy.weixin4j.cache.CacheCreator
create
 

Field Detail

CACHEKEY_PREFIX

public static final String CACHEKEY_PREFIX
缓存KEY前缀

See Also:
Constant Field Values
Constructor Detail

TokenCreator

public TokenCreator()
Method Detail

key

public String key()
缓存key:附加key前缀

Specified by:
key in interface CacheCreator<Token>
Returns:

name

public abstract String name()
返回缓存类型命名,如mp_token

Returns:

uniqueid

public abstract String uniqueid()
返回缓存唯一标识,如appid

Returns:


Copyright © 2014–2017. All rights reserved.