com.aspire.nm.component.cmppserver.filter.coder.packet
类 CmppSubmitPacket
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.CmppSubmitPacket
- 所有已实现的接口:
- Serializable
public class CmppSubmitPacket
- extends CmppPacket
CMPP_SUBMIT
参照:中国移动通信互联网短信网关接口协议CMPP3.0, 中国移动通信互联网短信网关接口协议CMPP2.0
- 从以下版本开始:
- 1.0.0
- 作者:
- Wang Shenggong
- 另请参见:
- 序列化表格
| 从类 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 |
| 从类 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 |
REGISTERED_DILIVERY_YES
public static final int REGISTERED_DILIVERY_YES
- 另请参见:
- 常量字段值
REGISTERED_DELIVERY_NO
public static final int REGISTERED_DELIVERY_NO
- 另请参见:
- 常量字段值
FEE_USR_TYPE_DEST_MSISDN
public static final int FEE_USR_TYPE_DEST_MSISDN
- 另请参见:
- 常量字段值
FEE_USR_TYPE_SRC_MSISDN
public static final int FEE_USR_TYPE_SRC_MSISDN
- 另请参见:
- 常量字段值
FEE_USR_TYPE_SP
public static final int FEE_USR_TYPE_SP
- 另请参见:
- 常量字段值
FEE_USR_TYPE_TERMINAL
public static final int FEE_USR_TYPE_TERMINAL
- 另请参见:
- 常量字段值
FEE_TERMINAL_TYPE_REAL
public static final int FEE_TERMINAL_TYPE_REAL
- 另请参见:
- 常量字段值
FEE_TERMINAL_TYPE_MOCK
public static final int FEE_TERMINAL_TYPE_MOCK
- 另请参见:
- 常量字段值
MSG_FMT_ASCII
public static final int MSG_FMT_ASCII
- 另请参见:
- 常量字段值
MSG_FMT_WRITE_CARD
public static final int MSG_FMT_WRITE_CARD
- 另请参见:
- 常量字段值
MSG_FMT_BINARY
public static final int MSG_FMT_BINARY
- 另请参见:
- 常量字段值
MSG_FMT_UCS2
public static final int MSG_FMT_UCS2
- 另请参见:
- 常量字段值
MSG_FMT_GBK
public static final int MSG_FMT_GBK
- 另请参见:
- 常量字段值
MSG_FMT_FLASH
public static final int MSG_FMT_FLASH
- 另请参见:
- 常量字段值
FEE_TYPE_FREE
public static final String FEE_TYPE_FREE
- 另请参见:
- 常量字段值
CmppSubmitPacket
public CmppSubmitPacket(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
getMsgId
public long getMsgId()
- 返回:
- the msgId
setMsgId
public void setMsgId(long msgId)
- 参数:
msgId - the msgId to set
getPkTotal
public int getPkTotal()
- 返回:
- the pkTotal
setPkTotal
public void setPkTotal(int pkTotal)
- 参数:
pkTotal - the pkTotal to set
getPkNumber
public int getPkNumber()
- 返回:
- the pkNumber
setPkNumber
public void setPkNumber(int pkNumber)
- 参数:
pkNumber - the pkNumber to set
getRegisteredDelivery
public byte getRegisteredDelivery()
- 返回:
- the registeredDelivery
setRegisteredDelivery
public void setRegisteredDelivery(byte registeredDelivery)
- 参数:
registeredDelivery - the registeredDelivery to set
getMsgLevel
public byte getMsgLevel()
- 返回:
- the msgLevel
setMsgLevel
public void setMsgLevel(byte msgLevel)
- 参数:
msgLevel - the msgLevel to set
getServiceId
public String getServiceId()
- 返回:
- the serviceId
setServiceId
public void setServiceId(String serviceId)
- 参数:
serviceId - the serviceId to set
getFeeUserType
public byte getFeeUserType()
- 返回:
- the feeUserType
setFeeUserType
public void setFeeUserType(byte feeUserType)
- 参数:
feeUserType - the feeUserType to set
getFeeTerminalId
public String getFeeTerminalId()
- 返回:
- the feeTerminalId
setFeeTerminalId
public void setFeeTerminalId(String feeTerminalId)
- 参数:
feeTerminalId - the feeTerminalId to set
getFeeTerminalType
public byte getFeeTerminalType()
- 返回:
- the feeTerminalType
setFeeTerminalType
public void setFeeTerminalType(byte feeTerminalType)
- 参数:
feeTerminalType - the feeTerminalType to set
getTpPid
public byte getTpPid()
- 返回:
- the tpPid
setTpPid
public void setTpPid(byte tpPid)
- 参数:
tpPid - the tpPid to set
getTpUdhi
public byte getTpUdhi()
- 返回:
- the tpUdhi
setTpUdhi
public void setTpUdhi(byte tpUdhi)
- 参数:
tpUdhi - the tpUdhi to set
getMsgFmt
public byte getMsgFmt()
- 返回:
- the msgFmt
setMsgFmt
public void setMsgFmt(byte msgFmt)
- 参数:
msgFmt - the msgFmt to set
getMsgSrc
public String getMsgSrc()
- 返回:
- the msgSrc
setMsgSrc
public void setMsgSrc(String msgSrc)
- 参数:
msgSrc - the msgSrc to set
getFeeType
public String getFeeType()
- 返回:
- the feeType
setFeeType
public void setFeeType(String feeType)
- 参数:
feeType - the feeType to set
getFeeCode
public String getFeeCode()
- 返回:
- the feeCode
setFeeCode
public void setFeeCode(String feeCode)
- 参数:
feeCode - the feeCode to set
getValidTime
public String getValidTime()
- 返回:
- the validTime
setValidTime
public void setValidTime(String validTime)
- 参数:
validTime - the validTime to set
getAtTime
public String getAtTime()
- 返回:
- the atTime
setAtTime
public void setAtTime(String atTime)
- 参数:
atTime - the atTime to set
getSrcId
public String getSrcId()
- 返回:
- the srcId
setSrcId
public void setSrcId(String srcId)
- 参数:
srcId - the srcId to set
getDestUsrTl
public byte getDestUsrTl()
- 返回:
- the destUsrTl
setDestUsrTl
public void setDestUsrTl(byte destUserTl)
- 参数:
destUserTl - the destUsrTl to set
getDestTerminalId
public String[] getDestTerminalId()
- 返回:
- the destTerminalId
setDestTerminalId
public void setDestTerminalId(String[] destTerminalId)
- 参数:
destTerminalId - the destTerminalId to set
getDestTerminateIds
public String getDestTerminateIds()
- 返回 Dest_Terminate_Id的字符串
- 返回:
getDestTerminalType
public byte getDestTerminalType()
- 返回:
- the destTerminalType
setDestTerminalType
public void setDestTerminalType(byte destTerminalType)
- 参数:
destTerminalType - the destTerminalType to set
getMsgLength
public int getMsgLength()
- 返回:
- the msgLength
setMsgLength
public void setMsgLength(int msgLength)
- 参数:
msgLength - the msgLength to set
getMsgContent
public byte[] getMsgContent()
- 返回:
- the msgContent
getLongPartKey
public String getLongPartKey()
- 拼接长短信时候的Key
- 返回:
getMsgContentDecoded
public String getMsgContentDecoded()
- 返回根据Msg_Fmt解码的字符串消息
- 返回:
setMsgContent
public void setMsgContent(byte[] msgContent)
- 参数:
msgContent - the msgContent to set
getLinkId
public String getLinkId()
- 返回:
- the linkId
getReserve
public String getReserve()
setLinkId
public void setLinkId(String linkId)
- 参数:
linkId - the linkId to set
setReserve
public void setReserve(String reserve)
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
Copyright © 2016. All rights reserved.