1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package com.walker.tcp;
|
| /**
| * 过滤器接口定义
| * @author 时克英
| * @date 2018-10-25
| *
| */
| public interface Filter {
|
| /**
| * 过滤逻辑处理,如果继续向下处理,返回<code>true</code>,否则返回<code>false</code>
| * @param context
| * @return
| * @throws Exception
| */
| boolean doFilter(Context context) throws Exception;
|
| /**
| * 过滤器名字,唯一
| * @return
| */
| String getName();
| }
|
|