MsgInfo msgInfo = msgInfoArr[i];
MethodName method = msgInfo.getMethodName();
String sessionId = msgInfo.getSecretSessionId();
MsgUnitRaw[] msgUnitRawArr = msgInfo.getMessageArr();
String key = null;
MsgUnitRaw msgUnitRaw = null;
if (msgUnitRawArr != null && msgUnitRawArr.length > 0) {
msgUnitRaw = msgUnitRawArr[0];
key = msgUnitRaw.getKey();
}
String qos = msgInfo.getQos();
if (method.isConnect()) {
}
else if (method.isDisconnect()) {
}
else if (method.isErase()) {
return erase(sessionId, key, qos);
}
else if (method.isGet()) {
final String asString = "true";
return get(sessionId, key, qos, asString);
}
else if (method.isPublish()) {
byte[] content = null;
if (msgUnitRaw != null)
content = msgUnitRaw.getContent();
return publish(sessionId, key, content, qos);
}
else if (method.isPublishArray()) {
String[] strArr = blasterNative.publishArr(addressServer, sessionId, msgUnitRawArr);
return ProtoConverter.stringArray2Vector(strArr);