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