use of com.zx.sms.connect.manager.ClientEndpoint in project SMSGate by Lihuanghe.
the class CMPPClientEndpointConnector method doBindHandler.
@Override
protected void doBindHandler(ChannelPipeline pipe, EndpointEntity cmppentity) {
CMPPEndpointEntity entity = (CMPPEndpointEntity) cmppentity;
if (entity instanceof ClientEndpoint) {
pipe.addAfter(GlobalConstance.codecName, "reWriteSubmitMsgSrcHandler", new ReWriteSubmitMsgSrcHandler(entity));
}
// 处理长短信
pipe.addLast("CMPPDeliverLongMessageHandler", new CMPPDeliverLongMessageHandler(entity));
pipe.addLast("CMPPSubmitLongMessageHandler", new CMPPSubmitLongMessageHandler(entity));
pipe.addLast("CmppActiveTestRequestMessageHandler", GlobalConstance.activeTestHandler);
pipe.addLast("CmppActiveTestResponseMessageHandler", GlobalConstance.activeTestRespHandler);
pipe.addLast("CmppTerminateRequestMessageHandler", GlobalConstance.terminateHandler);
pipe.addLast("CmppTerminateResponseMessageHandler", GlobalConstance.terminateRespHandler);
}
Aggregations