use of com.zx.sms.connect.manager.ServerEndpoint in project SMSGate by Lihuanghe.
the class SessionLoginManager method queryEndpointEntityByMsg.
@Override
protected EndpointEntity queryEndpointEntityByMsg(Object msg) {
if (msg instanceof CmppConnectRequestMessage) {
CmppConnectRequestMessage message = (CmppConnectRequestMessage) msg;
String username = message.getSourceAddr();
if (entity instanceof ServerEndpoint) {
ServerEndpoint serverEntity = (ServerEndpoint) entity;
return serverEntity.getChild(username.trim());
}
}
return null;
}
Aggregations