|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.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
public class CmppConnectRespPacket
CMPP_CONNECT_RESP
参照:中国移动通信互联网短信网关接口协议CMPP3.0, 中国移动通信互联网短信网关接口协议CMPP2.0
| 字段摘要 | |
|---|---|
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
登陆成功 |
| 构造方法摘要 | |
|---|---|
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 |
| 字段详细信息 |
|---|
public static final int STATUS_SUCCESS
public static final int STATUS_SRC_ADDRESS_ERR
public static final int STATUS_AUTH_ERR
public static final int STATUS_CONNECTIONS_LIMIT
public static final int STATUS_IP_LIMIT
| 构造方法详细信息 |
|---|
public CmppConnectRespPacket(Version version)
| 方法详细信息 |
|---|
public byte[] pack()
throws PacketException
CmppPacket 复制的描述
CmppPacket 中的 packPacketException
public CmppPacket unpack(ByteBuffer buffer)
throws PacketException
CmppPacket 复制的描述
CmppPacket 中的 unpackPacketExceptionpublic int getStatus()
public void setStatus(int status)
status - the status to setpublic byte[] getAuthenticatorISMG()
public void setAuthenticatorISMG(byte[] authenticatorISMG)
authenticatorISMG - the authenticatorISMG to setpublic Version getVersion()
public void setVersion(Version version)
CmppPacket 中的 setVersionversion - the version to setpublic String getAuthenticatorISMGHexString()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||