com.zx.sms.codec.cmpp7F.Cmpp7FDeliverRequestMessageCodec Maven / Gradle / Ivy
/**
*
*/
package com.zx.sms.codec.cmpp7F;
import static com.zx.sms.common.util.NettyByteBufUtil.toArray;
import java.util.List;
import org.marre.sms.SmsDcs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zx.sms.codec.cmpp.msg.CmppDeliverRequestMessage;
import com.zx.sms.codec.cmpp.msg.CmppReportRequestMessage;
import com.zx.sms.codec.cmpp.msg.Message;
import com.zx.sms.codec.cmpp.packet.CmppDeliverRequest;
import com.zx.sms.codec.cmpp.packet.CmppReportRequest;
import com.zx.sms.codec.cmpp.packet.PacketType;
import com.zx.sms.codec.cmpp.wap.LongMessageFrameHolder;
import com.zx.sms.codec.cmpp7F.packet.Cmpp7FPacketType;
import com.zx.sms.common.GlobalConstance;
import com.zx.sms.common.util.CMPPCommonUtil;
import com.zx.sms.common.util.DefaultMsgIdUtil;
import com.zx.sms.common.util.FstObjectSerializeUtil;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;
import io.netty.util.ReferenceCountUtil;
/**
* @author huzorro([email protected])
* @author Lihuanghe([email protected])
*/
public class Cmpp7FDeliverRequestMessageCodec extends MessageToMessageCodec {
private final Logger logger = LoggerFactory.getLogger(Cmpp7FDeliverRequestMessageCodec.class);
private PacketType packetType;
/**
*
*/
public Cmpp7FDeliverRequestMessageCodec() {
this(Cmpp7FPacketType.CMPPDELIVERREQUEST);
}
public Cmpp7FDeliverRequestMessageCodec(PacketType packetType) {
this.packetType = packetType;
}
@Override
protected void decode(ChannelHandlerContext ctx, Message msg, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy