亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? smpppacket.java

?? SMPP(點到點短消息協議)的java實現
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
package ie.omk.smpp.message;import ie.omk.smpp.Address;import ie.omk.smpp.message.tlv.TLVTable;import ie.omk.smpp.message.tlv.Tag;import ie.omk.smpp.util.AlphabetEncoding;import ie.omk.smpp.util.BinaryEncoding;import ie.omk.smpp.util.EncodingFactory;import ie.omk.smpp.util.MessageEncoding;import ie.omk.smpp.util.SMPPDate;import ie.omk.smpp.util.SMPPIO;import ie.omk.smpp.version.SMPPVersion;import java.io.OutputStream;import java.util.Date;/** * This is the abstract class that all SMPP messages are inherited from. *  * @author Oran Kelly * @version 1.0 */public abstract class SMPPPacket {    /** Command Id: Negative Acknowledgement */    public static final int GENERIC_NACK = 0x80000000;    /** Command Id: Bind Receiver */    public static final int BIND_RECEIVER = 0x00000001;    /** Command Id: Bind Receiver Response */    public static final int BIND_RECEIVER_RESP = 0x80000001;    /** Command Id: Bind transmitter */    public static final int BIND_TRANSMITTER = 0x00000002;    /** Command Id: Bind transmitter response */    public static final int BIND_TRANSMITTER_RESP = 0x80000002;    /** Command Id: Query message */    public static final int QUERY_SM = 0x00000003;    /** Command Id: Query message response */    public static final int QUERY_SM_RESP = 0x80000003;    /** Command Id: Submit message */    public static final int SUBMIT_SM = 0x00000004;    /** Command Id: Submit message response */    public static final int SUBMIT_SM_RESP = 0x80000004;    /** Command Id: Deliver Short message */    public static final int DELIVER_SM = 0x00000005;    /** Command Id: Deliver message response */    public static final int DELIVER_SM_RESP = 0x80000005;    /** Command Id: Unbind */    public static final int UNBIND = 0x00000006;    /** Command Id: Unbind response */    public static final int UNBIND_RESP = 0x80000006;    /** Command Id: Replace message */    public static final int REPLACE_SM = 0x00000007;    /** Command Id: replace message response */    public static final int REPLACE_SM_RESP = 0x80000007;    /** Command Id: Cancel message */    public static final int CANCEL_SM = 0x00000008;    /** Command Id: Cancel message response */    public static final int CANCEL_SM_RESP = 0x80000008;    /** Command Id: Bind transceiver */    public static final int BIND_TRANSCEIVER = 0x00000009;    /** Command Id: Bind transceiever response. */    public static final int BIND_TRANSCEIVER_RESP = 0x80000009;    /** Command Id: Outbind. */    public static final int OUTBIND = 0x0000000b;    /** Command Id: Enquire Link */    public static final int ENQUIRE_LINK = 0x00000015;    /** Command Id: Enquire link respinse */    public static final int ENQUIRE_LINK_RESP = 0x80000015;    /** Command Id: Submit multiple messages */    public static final int SUBMIT_MULTI = 0x00000021;    /** Command Id: Submit multi response */    public static final int SUBMIT_MULTI_RESP = 0x80000021;    /** Command Id: Parameter retrieve */    public static final int PARAM_RETRIEVE = 0x00000022;    /** Command Id: Paramater retrieve response */    public static final int PARAM_RETRIEVE_RESP = 0x80000022;    /** Command Id: Query last messages */    public static final int QUERY_LAST_MSGS = 0x00000023;    /** Command Id: Query last messages response */    public static final int QUERY_LAST_MSGS_RESP = 0x80000023;    /** Command Id: Query message details */    public static final int QUERY_MSG_DETAILS = 0x00000024;    /** Command Id: Query message details response */    public static final int QUERY_MSG_DETAILS_RESP = 0x80000024;    /** Command Id: alert notification. */    public static final int ALERT_NOTIFICATION = 0x00000102;    /** Command Id: Data message. */    public static final int DATA_SM = 0x00000103;    /** Command Id: Data message response. */    public static final int DATA_SM_RESP = 0x80000103;    /** Message state at Smsc: En route */    public static final int SM_STATE_EN_ROUTE = 1;    /** Message state at Smsc: Delivered (final) */    public static final int SM_STATE_DELIVERED = 2;    /** Message state at Smsc: Expired (final) */    public static final int SM_STATE_EXPIRED = 3;    /** Message state at Smsc: Deleted (final) */    public static final int SM_STATE_DELETED = 4;    /** Message state at Smsc: Undeliverable (final) */    public static final int SM_STATE_UNDELIVERABLE = 5;    /** Message state at Smsc: Accepted */    public static final int SM_STATE_ACCEPTED = 6;    /** Message state at Smsc: Invalid message (final) */    public static final int SM_STATE_INVALID = 7;    /** Esm class: Mobile Terminated; Normal delivery, no address swapping */    public static final int SMC_MT = 1;    /** Esm class: Mobile originated */    public static final int SMC_MO = 2;    /** Esm class: Mobile Originated / Terminated */    public static final int SMC_MOMT = 3;    /** Esm class: Delivery receipt, no address swapping */    public static final int SMC_RECEIPT = 4;    /** Esm class: Predefined message */    public static final int SMC_DEFMSG = 8;    /** Esm class: Normal delivery , address swapping on */    public static final int SMC_LOOPBACK_RECEIPT = 16;    /** Esm class: Delivery receipt, address swapping on */    public static final int SMC_RECEIPT_SWAP = 20;    /** Esm class: Store message, do not send to Kernel */    public static final int SMC_STORE = 32;    /** Esm class: Store message and send to kernel */    public static final int SMC_STORE_FORWARD = 36;    /** Esm class: Distribution submission */    public static final int SMC_DLIST = 64;    /** Esm class: Multiple recipient submission */    public static final int SMC_MULTI = 128;    /** Esm class: Distribution list and multiple recipient submission */    public static final int SMC_CAS_DL = 256;    /** Esm class: Escalated message FFU */    public static final int SMC_ESCALATED = 512;    /** Esm class: Submit with replace message */    public static final int SMC_SUBMIT_REPLACE = 1024;    /** Esm class: Memory capacity error */    public static final int SMC_MCE = 2048;    /** Esme error code: No error */    public static final int ESME_ROK = 0;    /**     * Version of this packet. This object controls valid settings for field     * values.     */    protected SMPPVersion version = SMPPVersion.getDefaultVersion();    /** Command ID. */    protected int commandId;    /** Command status. */    protected int commandStatus;    /** Packet sequence number. */    protected int sequenceNum;    /*     * Almost all packets use one or more of these. These attributes were all     * stuck in here for easier maintenance... instead of altering 5 different     * packets, just alter it here!! Special cases like SubmitMulti and     * QueryMsgDetailsResp maintain their own destination tables. Any packets     * that wish to use these attribs should override the appropriate methods     * defined below to be public and just call super.method()     */    /** Source address */    protected Address source;    /** Destination address */    protected Address destination;    /** The short message data */    protected byte[] message;    /** Service type for this msg */    protected String serviceType;    /** Scheduled delivery time */    protected SMPPDate deliveryTime;    /** Scheduled expiry time */    protected SMPPDate expiryTime;    /** Date of reaching final state */    protected SMPPDate finalDate;    /** Smsc allocated message Id */    protected String messageId;    /** Status of message */    protected int messageStatus;    /** Error associated with message */    protected int errorCode;    /** Message priority. */    protected int priority;    /** Registered delivery. */    protected int registered;    /** Replace if present. */    protected int replaceIfPresent;    /** ESM class. */    protected int esmClass;    /** GSM protocol ID. */    protected int protocolID;    /** Alphabet to use to encode this message's text. */    private MessageEncoding encoding = EncodingFactory.getInstance().getDefaultAlphabet();    /** GSM data coding (see GSM 03.38). */    protected int dataCoding = encoding.getDataCoding();    /** Default message number. */    protected int defaultMsg;    /** Optional parameter table. */    protected TLVTable tlvTable = new TLVTable();    /**     * Create a new SMPPPacket with specified Id.     *      * @param id     *            Command Id value     */    protected SMPPPacket(int id) {        this(id, 0);    }    /**     * Create a new SMPPPacket with specified Id and sequence number.     *      * @param id     *            Command Id value     * @param seqNum     *            Command Sequence number     */    protected SMPPPacket(int id, int seqNum) {        this.commandId = id;        this.sequenceNum = seqNum;    }    protected SMPPPacket(int id, SMPPVersion version) {        this.commandId = id;        this.version = version;    }    protected SMPPPacket(int id, int seqNum, SMPPVersion version) {        this.commandId = id;        this.sequenceNum = seqNum;        this.version = version;    }    /**     * Get the version handler in use for this packet.     *      * @see ie.omk.smpp.version.SMPPVersion     */    public SMPPVersion getVersion() {        return version;    }    /**     * Is this command a request packet.     * @return <code>true</code> if this packet is an SMPP request, <code>     * false</code> if it is a response.     */    public boolean isRequest() {        return false;    }        /**     * Set the version handler for this packet. If <code>null</code> is passed     * in as the version, the default version will be used.     *      * @param version     *            the version handler to use.     * @see ie.omk.smpp.version.SMPPVersion#getDefaultVersion     */    public void setVersion(SMPPVersion version) {        if (version == null) {            this.version = SMPPVersion.getDefaultVersion();        } else {            this.version = version;        }    }    /**     * Return the number of bytes this packet would be encoded as to an     * OutputStream.     *      * @return The size in bytes of the packet     * @deprecated     */    public final int getCommandLen() {        // TODO stop overriding this deprecated method.        return getLength();    }    /**     * Get the number of bytes this packet would be encoded as. This returns the     * sum of the size of the header (always 16), the packet's body and all     * optional parameters.     *      * @return the number of bytes this packet would encode as.     */    public final int getLength() {        return 16 + getBodyLength() + tlvTable.getLength();    }    /**     * Get the number of bytes the body of this packet would encode as. This     * method should only return the number of bytes the fields in the mandatory     * parameters section of the packet would encode as. The total size of the     * packet then is 16 (header length) + getBodyLength() + SUM(foreach     * optionalParameter: getLength()).     */    public abstract int getBodyLength();    /**     * Get the Command Id of this SMPP packet.     *      * @return The Command Id of this packet     */    public int getCommandId() {        return commandId;    }    /**     * Get the status of this packet.     *      * @return The error status of this packet (only relevent to Response     *         packets)     */    public int getCommandStatus() {        return this.commandStatus;    }    /**     * Get the sequence number of this packet.     *      * @return The sequence number of this SMPP packet     */    public int getSequenceNum() {        return this.sequenceNum;    }    /**     * Set the sequence number of this packet.     */    public void setSequenceNum(int sequenceNum) {        this.sequenceNum = sequenceNum;    }    /**     * Set the source address..     */    public void setSource(Address s) throws InvalidParameterValueException {        if (s != null) {            if (version.validateAddress(s)) {                this.source = s;            } else {                throw new InvalidParameterValueException("Bad source address.",                        s);            }        } else {            this.source = null;        }    }    /**     * Get the source address.     * @return The source address or null if it is not set.     */    public Address getSource() {        return source;    }    /**     * Set the destination address.     */    public void setDestination(Address s) {        if (s != null) {            if (version.validateAddress(s)) {                this.destination = s;            } else {                throw new InvalidParameterValueException(                        "Bad destination address.", s);            }        } else {            this.destination = null;        }    }    /**     * Get the destination address.     * @return The destination address or null if it is not set.     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久成人久久鬼色| 日韩电影免费在线观看网站| 中文字幕一区二区三区色视频 | 国产综合一区二区| aaa欧美日韩| 精品国产一区久久| 亚洲线精品一区二区三区| 国产精品77777竹菊影视小说| 欧美日韩在线亚洲一区蜜芽| 国产欧美一区二区精品婷婷| 亚洲国产另类精品专区| 成人免费视频一区| 久久免费偷拍视频| 亚洲欧洲精品一区二区三区| 91精品麻豆日日躁夜夜躁| 欧美韩国日本不卡| 麻豆精品久久精品色综合| 91啪九色porn原创视频在线观看| 久久这里只有精品视频网| 石原莉奈在线亚洲三区| 日本高清成人免费播放| 综合在线观看色| 成人一级视频在线观看| 国产欧美日韩久久| 韩国欧美一区二区| 欧美草草影院在线视频| 日韩精品电影一区亚洲| 欧美日韩成人一区| 午夜精品久久久久久久蜜桃app| 97久久超碰精品国产| 国产精品二三区| 从欧美一区二区三区| 国产视频一区二区在线观看| 国产一区二区三区四区五区入口| 欧美变态tickling挠脚心| 日韩高清电影一区| 欧美一区二区国产| 麻豆高清免费国产一区| 欧美精品一区二区三区蜜桃视频| 激情综合一区二区三区| www欧美成人18+| 国产91精品露脸国语对白| 久久蜜臀中文字幕| 国产91精品一区二区麻豆网站 | 欧美在线观看一区| 亚洲亚洲人成综合网络| 欧美精品乱人伦久久久久久| 欧美aⅴ一区二区三区视频| 欧美一级国产精品| 国产精品一级二级三级| 国产欧美日韩亚州综合| av一区二区三区在线| 一区二区三区免费在线观看| 欧美亚洲另类激情小说| 欧美bbbbb| 中文在线一区二区| 在线看日本不卡| 久久99深爱久久99精品| 国产精品视频一二三| 欧美色欧美亚洲另类二区| 日产国产欧美视频一区精品| 精品国产成人在线影院| 91亚洲午夜精品久久久久久| 亚洲18女电影在线观看| 久久综合成人精品亚洲另类欧美| 97se亚洲国产综合在线| 日本在线不卡视频| 国产精品伦一区二区三级视频| 色婷婷久久99综合精品jk白丝| 日韩av高清在线观看| 国产欧美日韩久久| 在线成人免费观看| eeuss国产一区二区三区| 亚洲韩国精品一区| 国产日本欧洲亚洲| 欧美色图天堂网| 国产不卡高清在线观看视频| 亚洲高清视频的网址| 亚洲精品在线免费播放| 欧美色爱综合网| 国产成人aaa| 日本欧洲一区二区| 有码一区二区三区| 久久精品亚洲麻豆av一区二区| 欧美日韩中文字幕一区| 国产91精品一区二区麻豆网站 | 一级日本不卡的影视| 久久综合色一综合色88| 一本色道久久加勒比精品| 久久电影网电视剧免费观看| 亚洲免费观看视频| 久久久美女艺术照精彩视频福利播放| 91黄色小视频| 成av人片一区二区| 韩国成人精品a∨在线观看| 亚洲大片一区二区三区| 国产精品的网站| 国产女同互慰高潮91漫画| 日韩一级片在线播放| 欧美日韩一区三区四区| 色呦呦网站一区| 暴力调教一区二区三区| 国产精品综合在线视频| 麻豆精品视频在线| 免费在线观看成人| 日韩 欧美一区二区三区| 亚洲无人区一区| 一区二区三区小说| 亚洲色图欧美偷拍| 国产精品久久久久久久久图文区| 精品盗摄一区二区三区| 日韩欧美一区二区在线视频| 欧美日韩一区国产| 欧美性猛交xxxx乱大交退制版| 色香蕉久久蜜桃| 在线观看视频一区二区欧美日韩| 99精品久久免费看蜜臀剧情介绍| 成人国产在线观看| 成人国产精品免费观看动漫| 国产成人精品亚洲午夜麻豆| 国产乱对白刺激视频不卡| 韩国精品主播一区二区在线观看 | 国产精品一区二区免费不卡| 美女看a上一区| 麻豆精品国产传媒mv男同| 免费人成网站在线观看欧美高清| 日韩高清在线一区| 激情欧美一区二区三区在线观看| 久久av资源网| 粉嫩高潮美女一区二区三区| www.欧美.com| 在线观看日韩电影| 欧美日韩国产一区| 精品美女一区二区| 国产色一区二区| 亚洲欧美激情一区二区| 午夜精品在线视频一区| 强制捆绑调教一区二区| 国产精品自拍三区| 91浏览器在线视频| 欧美精品v国产精品v日韩精品| 日韩欧美国产综合在线一区二区三区| 久久天堂av综合合色蜜桃网| 国产精品女主播av| 亚洲成av人影院在线观看网| 麻豆精品久久精品色综合| 成人午夜大片免费观看| 在线亚洲高清视频| 欧美大度的电影原声| 国产精品久久一卡二卡| 亚洲成人动漫精品| 国产电影一区二区三区| 在线欧美日韩国产| 精品国产91九色蝌蚪| 亚洲色大成网站www久久九九| 日本亚洲电影天堂| heyzo一本久久综合| 欧美丰满少妇xxxxx高潮对白| 久久久久久久久伊人| 一区二区日韩av| 国产91色综合久久免费分享| 欧美久久高跟鞋激| 中文字幕一区二区三区在线播放| 天堂久久久久va久久久久| 成人av在线资源网站| 日韩视频在线一区二区| 亚洲人精品午夜| 国产一区二区剧情av在线| 欧美天堂一区二区三区| 中文字幕第一区| 美女一区二区久久| 欧美在线free| 国产精品久久久久影院色老大 | 亚洲色图一区二区| 国产精品自拍在线| 91精品国产91综合久久蜜臀| 中文字幕中文乱码欧美一区二区| 麻豆精品视频在线观看视频| 欧美日韩免费不卡视频一区二区三区| 国产视频一区不卡| 九色综合国产一区二区三区| 日本成人在线不卡视频| 久久精品在线观看| 一本久久a久久免费精品不卡| 丝袜美腿一区二区三区| 国产校园另类小说区| 91在线视频官网| heyzo一本久久综合| 免费成人av资源网| 图片区小说区区亚洲影院| 1024精品合集| 亚洲美女屁股眼交3| 精品一区二区三区久久| 在线播放91灌醉迷j高跟美女| 亚洲人成网站色在线观看| 国产成人精品亚洲777人妖| 精品少妇一区二区| 精彩视频一区二区| 日韩精品一区二区三区视频| 日本亚洲最大的色成网站www|