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;
|
}
|
|
}
|