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