1 package com.foxinmy.weixin4j.interceptor;
2
3 import com.foxinmy.weixin4j.handler.WeixinMessageHandler;
4 import com.foxinmy.weixin4j.request.WeixinMessage;
5 import com.foxinmy.weixin4j.request.WeixinRequest;
6 import com.foxinmy.weixin4j.response.WeixinResponse;
7
8 import io.netty.channel.ChannelHandlerContext;
9
10
11
12
13
14
15
16
17
18
19 public interface WeixinMessageInterceptor {
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 boolean preHandle(ChannelHandlerContext context, WeixinRequest request,
36 WeixinMessage message, WeixinMessageHandler handler);
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53 void postHandle(ChannelHandlerContext context, WeixinRequest request,
54 WeixinResponse response, WeixinMessage message,
55 WeixinMessageHandler handler);
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 void afterCompletion(ChannelHandlerContext context, WeixinRequest request,
73 WeixinResponse response, WeixinMessage message,
74 WeixinMessageHandler handler, Exception exception);
75
76
77
78
79
80
81 int weight();
82 }