All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foxinmy.weixin4j.dispatcher.WeixinMessageMatcher Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
package com.foxinmy.weixin4j.dispatcher;

import com.foxinmy.weixin4j.request.WeixinMessage;

/**
 * 微信消息匹配
 * 
 * @className WeixinMessageMatcher
 * @author jinyu([email protected])
 * @date 2015年5月17日
 * @since JDK 1.6
 * @see DefaultMessageMatcher
 */
public interface WeixinMessageMatcher {
	/**
	 * 匹配消息类型
	 * 
	 * @param messageKey
	 *            消息key
	 * @return 消息类型
	 */
	public Class match(WeixinMessageKey messageKey);

	/**
	 * 注册消息类型「程序没有及时更新而微信又产生了新的消息类型」
	 * 
	 * @param messageKey
	 *            消息key
	 * @param messageClass
	 *            消息类型
	 */
	public void regist(WeixinMessageKey messageKey,
			Class messageClass);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy