Search in sources :

Example 1 with ClientEndpoint

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);
}
Also used : ReWriteSubmitMsgSrcHandler(com.zx.sms.handler.cmpp.ReWriteSubmitMsgSrcHandler) CMPPDeliverLongMessageHandler(com.zx.sms.handler.cmpp.CMPPDeliverLongMessageHandler) ClientEndpoint(com.zx.sms.connect.manager.ClientEndpoint) CMPPSubmitLongMessageHandler(com.zx.sms.handler.cmpp.CMPPSubmitLongMessageHandler)

Aggregations

ClientEndpoint (com.zx.sms.connect.manager.ClientEndpoint)1 CMPPDeliverLongMessageHandler (com.zx.sms.handler.cmpp.CMPPDeliverLongMessageHandler)1 CMPPSubmitLongMessageHandler (com.zx.sms.handler.cmpp.CMPPSubmitLongMessageHandler)1 ReWriteSubmitMsgSrcHandler (com.zx.sms.handler.cmpp.ReWriteSubmitMsgSrcHandler)1