hefeixia
2021-02-18 5b8c95c760840f09910730943b21391e47187315
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
package chat.server.call;
 
import chat.server.im.OperateTable;
import chat.server.moquette.message.MqttMessage;
import chat.server.moquette.message.MqttPublishMessage;
 
public class Operator {
 
    private String path;
    private String key;
    private String object;
    private String method;
    private String topic;
    
    
    public Operator(String path, String object, String method) {
        this.path = path;
        this.key = path.toLowerCase();
        this.object = object;
        this.method = method;
        
    }
    
    public Operator(MqttMessage message) {
        // TODO Auto-generated constructor stub
    }
    
    public static Operator getInstance(String uri, String topic) {
        return OperateTable.get(uri, topic);
    }
    
    public static Operator getInstance(MqttPublishMessage message) {
        // TODO Auto-generated method stub
        return null;
    }
 
    public String getPath() {
        return path;
    }
 
    public String getKey() {
        return key;
    }
 
    public String getObject() {
        return object;
    }
 
    public String getMethod() {
        return method;
    }
 
    public String getTopic() {
        return topic;
    }
 
}