developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  BeforeFilter.h
//  mtopext
//  前置过滤器
//  Created by sihai on 11/12/14.
//  Copyright (c) 2014 taobao. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
#import <mtopext/MtopExtResponse.h>
#import <mtopext/MtopExtRequest.h>
#import <mtopext/MtopService.h>
#import <mtopext/FilterResult.h>
 
@protocol BeforeFilter <NSObject>
 
/**
 * 通过具体的MTOP实例构建filter.
 */
- (instancetype)initWithService:(MtopService*) service;
 
/**
 * 获取filter的名字
 * @return NSString
 */
- (NSString*) getName;
 
 
/**
 * 处理请求
 * @param request
 * @param result
 */
- (void) handle: (MtopExtRequest*) request result: (FilterResult*) result;
 
@end