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

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.CmppConnectRespPacket
所有已实现的接口:
Serializable

public class CmppConnectRespPacket
extends CmppPacket

CMPP_CONNECT_RESP

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

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

字段摘要
static int STATUS_AUTH_ERR
          认证错误
static int STATUS_CONNECTIONS_LIMIT
          连接数限制
static int STATUS_IP_LIMIT
          IP地址受限制
static int STATUS_SRC_ADDRESS_ERR
          非法源地址
static int STATUS_SUCCESS
          登陆成功
 
从类 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
 
构造方法摘要
CmppConnectRespPacket(Version version)
           
 
方法摘要
 byte[] getAuthenticatorISMG()
           
 String getAuthenticatorISMGHexString()
          取得authenticatorSource的十六进制字符串
 int getStatus()
           
 Version getVersion()
           
 byte[] pack()
          封包, 将封包对象打包成网络传输的字节数组
 void setAuthenticatorISMG(byte[] authenticatorISMG)
           
 void setStatus(int status)
           
 void setVersion(Version version)
           
 String toString()
           
 CmppPacket unpack(ByteBuffer buffer)
          将底层字节数组解包成封包对象, 解包后对象本身相应的值发生改变被将自己返回
 
从类 com.aspire.nm.component.cmppserver.filter.coder.packet.CmppPacket 继承的方法
getCommandId, getSequenceId, getTotalLength, isValidHeader, setCommandId, setSequenceId, setTotalLength
 
从类 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
 

字段详细信息

STATUS_SUCCESS

public static final int STATUS_SUCCESS
登陆成功

另请参见:
常量字段值

STATUS_SRC_ADDRESS_ERR

public static final int STATUS_SRC_ADDRESS_ERR
非法源地址

另请参见:
常量字段值

STATUS_AUTH_ERR

public static final int STATUS_AUTH_ERR
认证错误

另请参见:
常量字段值

STATUS_CONNECTIONS_LIMIT

public static final int STATUS_CONNECTIONS_LIMIT
连接数限制

另请参见:
常量字段值

STATUS_IP_LIMIT

public static final int STATUS_IP_LIMIT
IP地址受限制

另请参见:
常量字段值
构造方法详细信息

CmppConnectRespPacket

public CmppConnectRespPacket(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

getStatus

public int getStatus()
返回:
the status

setStatus

public void setStatus(int status)
参数:
status - the status to set

getAuthenticatorISMG

public byte[] getAuthenticatorISMG()
返回:
the authenticatorISMG

setAuthenticatorISMG

public void setAuthenticatorISMG(byte[] authenticatorISMG)
参数:
authenticatorISMG - the authenticatorISMG to set

getVersion

public Version getVersion()
返回:
the version

setVersion

public void setVersion(Version version)
覆盖:
CmppPacket 中的 setVersion
参数:
version - the version to set

getAuthenticatorISMGHexString

public String getAuthenticatorISMGHexString()
取得authenticatorSource的十六进制字符串

返回:
authenticatorSource的十六进制字符串

toString

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


Copyright © 2016. All rights reserved.