com.aspire.nm.component.cmppserver.filter.coder.packet
类 CmppDeliverRespPacket

java.lang.Object
  继承者 com.aspire.nm.component.cmppserver.filter.coder.packet.Packet
      继承者 com.aspire.nm.component.cmppserver.filter.coder.packet.CmppPacket
          继承者 com.aspire.nm.component.cmppserver.filter.coder.packet.CmppDeliverRespPacket
所有已实现的接口:
Serializable

public class CmppDeliverRespPacket
extends CmppPacket

CMPP_DELIVER_RESP

参照:中国移动通信互联网短信网关接口协议CMPP3.0, 中国移动通信互联网短信网关接口协议CMPP2.0

从以下版本开始:
1.0.0
作者:
Wang Shenggong
另请参见:
序列化表格

字段摘要
static int RESULT_COMMAND_ID_ERR
           
static int RESULT_FEE_CODE_ERR
           
static int RESULT_LENGTH_ERR
           
static int RESULT_OK
           
static int RESULT_OTHER_ERR
           
static int RESULT_SEQ_ID_REPEAT
           
static int RESULT_SERVICE_ID_ERR
           
static int RESULT_STRUCTURE_ERR
           
static int RESULT_TOO_LONG
           
static int RESULT_TRAFFIC_ERR
           
 
从类 com.aspire.nm.component.cmppserver.filter.coder.packet.CmppPacket 继承的字段
bizParams, CMPP_ACTIVE_TEST, CMPP_ACTIVE_TEST_LENGTH, CMPP_ACTIVE_TEST_RESP, CMPP_ACTIVE_TEST_RESP_LENGTH, CMPP_CANCEL, CMPP_CANCEL_LENGTH_V30, CMPP_CANCEL_RESP, CMPP_CANCEL_RESP_LENGTH_V30, CMPP_CONNECT, CMPP_CONNECT_LENGTH, CMPP_CONNECT_RESP, CMPP_CONNECT_RESP_LENGTH_V20, CMPP_CONNECT_RESP_LENGTH_V30, CMPP_DELIVER, CMPP_DELIVER_LENGTH_MIN_V20, CMPP_DELIVER_LENGTH_MIN_V30, CMPP_DELIVER_RESP, CMPP_DELIVER_RESP_LENGTH_V20, CMPP_DELIVER_RESP_LENGTH_V30, CMPP_QUERY, CMPP_QUERY_LENGTH_V30, CMPP_QUERY_RESP, CMPP_QUERY_RESP_LENGTH_V30, CMPP_SUBMIT, CMPP_SUBMIT_LENGTH_MIN_V20, CMPP_SUBMIT_LENGTH_MIN_V30, CMPP_SUBMIT_RESP, CMPP_SUBMIT_RESP_LENGTH_V20, CMPP_SUBMIT_RESP_LENGTH_V30, CMPP_TERMINATE, CMPP_TERMINATE_LENGTH, CMPP_TERMINATE_RESP, CMPP_TERMINATE_RESP_LENGTH, commandId, HEADER_LENGTH, sequenceId, totalLength, UNKNOW_PACKET, USMP_PUSHNOTIFY, USMP_PUSHNOTIRY_LENGTH, USMP_PUSHNOTIRY_RESP, USMP_PUSHNOTIRY_RESP_LENGTH, USMP_SUBMITPUSH, USMP_SUBMITPUSH_LENGTH_MAX, USMP_SUBMITPUSH_LENGTH_MIN, USMP_SUBMITPUSH_RESP, USMP_SUBMITPUSH_RESP_LENGTH, version
 
构造方法摘要
CmppDeliverRespPacket()
           
CmppDeliverRespPacket(Version version)
           
 
方法摘要
 long getMsgId()
           
 int getResult()
           
 byte[] pack()
          封包, 将封包对象打包成网络传输的字节数组
 void setMsgId(long msgId)
           
 void setResult(int result)
           
 String toString()
           
 CmppPacket unpack(ByteBuffer buffer)
          将底层字节数组解包成封包对象, 解包后对象本身相应的值发生改变被将自己返回
 
从类 com.aspire.nm.component.cmppserver.filter.coder.packet.CmppPacket 继承的方法
getCommandId, getSequenceId, getTotalLength, isValidHeader, setCommandId, setSequenceId, setTotalLength, setVersion
 
从类 com.aspire.nm.component.cmppserver.filter.coder.packet.Packet 继承的方法
allocate, get, get, get, get, getByteBuffer, getBytes, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getString, put, put, put, put, put, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, putString, putString, putStringLeftPad, putStringRightPad, setByteBuffer, setBytes
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

RESULT_OK

public static int RESULT_OK

RESULT_STRUCTURE_ERR

public static int RESULT_STRUCTURE_ERR

RESULT_COMMAND_ID_ERR

public static int RESULT_COMMAND_ID_ERR

RESULT_SEQ_ID_REPEAT

public static int RESULT_SEQ_ID_REPEAT

RESULT_LENGTH_ERR

public static int RESULT_LENGTH_ERR

RESULT_FEE_CODE_ERR

public static int RESULT_FEE_CODE_ERR

RESULT_TOO_LONG

public static int RESULT_TOO_LONG

RESULT_SERVICE_ID_ERR

public static int RESULT_SERVICE_ID_ERR

RESULT_TRAFFIC_ERR

public static int RESULT_TRAFFIC_ERR

RESULT_OTHER_ERR

public static int RESULT_OTHER_ERR
构造方法详细信息

CmppDeliverRespPacket

public CmppDeliverRespPacket()

CmppDeliverRespPacket

public CmppDeliverRespPacket(Version version)
方法详细信息

pack

public byte[] pack()
            throws PacketException
从类 CmppPacket 复制的描述
封包, 将封包对象打包成网络传输的字节数组

覆盖:
CmppPacket 中的 pack
返回:
打包后的字节数组
抛出:
PacketException

unpack

public CmppPacket unpack(ByteBuffer buffer)
                  throws PacketException
从类 CmppPacket 复制的描述
将底层字节数组解包成封包对象, 解包后对象本身相应的值发生改变被将自己返回

覆盖:
CmppPacket 中的 unpack
返回:
解包后的CmppPacket对象
抛出:
PacketException

toString

public String toString()
覆盖:
Object 中的 toString

getMsgId

public long getMsgId()
返回:
the msgId

setMsgId

public void setMsgId(long msgId)
参数:
msgId - the msgId to set

getResult

public int getResult()
返回:
the result

setResult

public void setResult(int result)
参数:
result - the result to set


Copyright © 2016. All rights reserved.