1 package com.foxinmy.weixin4j.handler;
2
3 import java.util.Set;
4
5 import com.foxinmy.weixin4j.request.WeixinMessage;
6 import com.foxinmy.weixin4j.request.WeixinRequest;
7 import com.foxinmy.weixin4j.response.WeixinResponse;
8
9
10
11
12
13
14
15
16
17
18
19 public interface WeixinMessageHandler {
20
21
22
23
24
25
26
27
28
29
30
31
32 public boolean canHandle(WeixinRequest request, WeixinMessage message, Set<String> nodeNames);
33
34
35
36
37
38
39
40
41
42
43 public WeixinResponse doHandle(WeixinRequest request, WeixinMessage message);
44
45
46
47
48
49
50 public int weight();
51 }