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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
//  IFCComponent.h
//  SecurityGuardMiddleTier
//
//  Created by yhN on 2019/4/3.
//  Copyright © 2019年 Li Fengzhong. All rights reserved.
//
 
//#ifndef IFCComponent_h
//#define IFCComponent_h
 
#import "IFCActionCallback.h"
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
 
@protocol ISecurityGuardFCManager <NSObject, IOpenSecurityGuardPluginInterface>
 
 
@required
 
/**
 流量清洗组件初始化,其中key为“key_login_module” value为true或false为必传配置
 
 @param configs 初始化配置
 @param error 异常体现
 */
-(void) setUp:(NSDictionary*) configs
        error:(NSError* __autoreleasing*)error;
 
 
/**
 请求是否需要进行流量清洗
 
 @param resCode 该请求返回的response code
 @param content 该请求对应response的header的kv内容
 @param headerType 目前支持mtop、apache httpclient(0)和java urlconnection(1) http response header格式
 @param error 异常体现
 @return 是否需要清洗
 */
-(BOOL) needFCProcessOrNot:(int) resCode
                   content:(NSDictionary*)content
                headerType:(int)headerType
                     error:(NSError* __autoreleasing*)error;
 
 
/**
 进行流量清洗
 
 @param resCode 请求返回的reponse code
 @param content 该请求对应response的header的kv内容
 @param actionCallback 清洗结果回调
 @param headerType 目前支持mtop、apache httpclient(0)和java urlconnection(1) http response header格式
 @param error 异常体现
 */
-(void) processFCContent:(int) resCode
                 content:(NSDictionary*) content
          actionCallback:(id<IFCActionCallback>)actionCallback
              headerType:(int)headerType
                   error:(NSError* __autoreleasing*)error;
 
 
/**
 获取插件版本号
 
 @param error 异常体现
 @return 中间层插件版本号
 */
-(NSString*) getPluginVersion:(NSError* __autoreleasing*) error;
 
@end
 
//#endif