⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smppobject.java

📁 Logica lastest SMPP API
💻 JAVA
字号:
/* * Copyright (c) 1996-2001 * Logica Mobile Networks Limited * All rights reserved. * * This software is distributed under Logica Open Source License Version 1.0 * ("Licence Agreement"). You shall use it and distribute only in accordance * with the terms of the License Agreement. * */package com.logica.smpp;import com.logica.smpp.debug.Debug;import com.logica.smpp.debug.DefaultDebug;import com.logica.smpp.debug.DefaultEvent;import com.logica.smpp.debug.Event;import com.logica.smpp.debug.FileDebug;import com.logica.smpp.debug.FileEvent;/** * Class <code>SmppObject</code> is the root of the SMPP Library * class hierarchy. Every class in the library has <code>SmppObject</code> * as a superclass except of classes in the <code>com.logica.smpp.debug</code> * package, exceptions and classes <code>Data</code>, * <code>OutbindListener</code> and <code>OutbindEvent</code>. *  * @author Logica Mobile Networks SMPP Open Source Team * @version 1.2, 26 Sep 2001 * @see Debug * @see Event *//*  13-07-01 ticp@logica.com added getDebug() and getEvent() static methods                           for returning current library-wide debug objects  26-09-01 ticp@logica.com added toolkit wide functional groups constant                           definitions for debugging*/public class SmppObject{    /**     * Library-wide object used for writting debug information.     * Every class derived from <code>SmppObject</code>     * can use this object for logging debug information.<br>     * It is initialised to an instance of <code>DefaultDebug</code> class     * which only writes debug information to the screen.     * <br>     * For tracing purposes the library reserves tracing groups 1 - 15     * for internal use, see below the description of the particular groups.     * The implementation of <code>Debug</code> class is expeted to handle     * these groups correctly (for example ignore groups at all).     *      * @see Debug     * @see DefaultDebug     * @see FileDebug     */    static protected Debug debug;    /**     * Library-wide object used for writting event information, basically     * information about exceptions. Every class derived from     * <code>SmppObject</code> can use this object for logging event     * information.<br>     * It is initialised to an instance of <code>DefaultEvent</code> class     * which only writes event information to the screen.     *      * @see Event     * @see DefaultEvent     * @see FileEvent     */    static protected Event event;        /** Debug tracing group for Receiver & Transmitter classes. */    public static final int DRXTX = 1;    /** Detailed debug tracing group for Receiver & Transmitter classes. */    public static final int DRXTXD = 2;    /** Event more detailed debug tracing group for Receiver & Transmitter classes. */    public static final int DRXTXD2 = 3;    /** Debug tracing group for Receiver & Transmitter classes. */    public static final int DSESS = 4;    /** Debug tracing group for PDU and derived classes. */    public static final int DPDU = 5;    /** Detailed debug tracing group for PDU and derived classes. */    public static final int DPDUD = 6;    /** Debug tracing group for communication (TCPIPConnection, Connection) classes. */    public static final int DCOM = 7;    /** Detailed debug tracing group for communication (TCPIPConnection, Connection) classes. */    public static final int DCOMD = 8;    /** Debug tracing group for utility classes. */    public static final int DUTL = 9;    /** Detailed debug tracing group for utility classes. */    public static final int DUTLD = 10;    /**     * Static initialiser initialises library-wide debug and event     * object to the default implementations.     *      * @see DefaultDebug     * @see DefaultEvent     */    static {        debug = new DefaultDebug();        event = new DefaultEvent();    }        /**     * Sets the debug object, which is used for writting debugging info.     *      * @param   dbg   the instance of the implementation of <code>Debug</code>     * class     * @see Debug     * @see DefaultDebug     * @see FileDebug     */    static public void setDebug(Debug dbg) { debug = dbg; }    /**     * Sets the event object, which is used for writting debugging info.     *      * @param   evt   the instance of the implementation of <code>Event</code>     * class     * @see Event     * @see DefaultEvent     * @see FileEvent     */    static public void setEvent(Event evt) { event = evt; }        /**     * Returns current event object used for writting event info.     *     * @return the current event object     */    static public Debug getDebug() { return debug; }        /**     * Returns current debug object used for writting debug info.     *     * @return the current debug object     */    static public Event getEvent() { return event; }    }

⌨️ 快捷键说明

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