com.zx.sms.codec.cmpp.CmppConnectResponseMessageCodec Maven / Gradle / Ivy
package com.zx.sms.codec.cmpp;
import static com.zx.sms.common.util.NettyByteBufUtil.toArray;
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;
import java.util.List;
import com.zx.sms.codec.cmpp.msg.CmppConnectResponseMessage;
import com.zx.sms.codec.cmpp.msg.Message;
import com.zx.sms.codec.cmpp.packet.CmppConnectResponse;
import com.zx.sms.codec.cmpp.packet.CmppPacketType;
import com.zx.sms.codec.cmpp.packet.PacketType;
import com.zx.sms.common.NotSupportedException;
/**
*
* @author huzorro([email protected])
* @author Lihuanghe([email protected])
*/
public class CmppConnectResponseMessageCodec extends MessageToMessageCodec {
private PacketType packetType;
/**
*
*/
public CmppConnectResponseMessageCodec() {
this(CmppPacketType.CMPPCONNECTRESPONSE);
}
public CmppConnectResponseMessageCodec(PacketType packetType) {
this.packetType = packetType;
}
@Override
protected void decode(ChannelHandlerContext ctx, Message msg, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy