genericnack.java

来自「SMPP(点到点短消息协议)的java实现」· Java 代码 · 共 47 行

JAVA
47
字号
package ie.omk.smpp.message;/** * Generic negative acknowledgment. Used if the short message entity, either * ESME or SMSC, does not understand a message transmitted to it or if a * transmitted protocol message is badly formed. *  * @author Oran Kelly * @version 1.0 */public class GenericNack extends ie.omk.smpp.message.SMPPResponse {    /**     * Construct a new GenericNack.     */    public GenericNack() {        super(GENERIC_NACK);    }    /**     * Construct a new GenericNack with specified sequence number.     *      * @param seqNum     *            The sequence number to use     * @deprecated     */    public GenericNack(int seqNum) {        super(GENERIC_NACK, seqNum);    }    public int getBodyLength() {        return 0;    }    public void readBodyFrom(byte[] b, int offset) throws SMPPProtocolException {        return;    }    /**     * Convert this packet to a String. Not to be interpreted programmatically,     * it's just dead handy for debugging!     */    public String toString() {        return new String("generic_nack");    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?