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

📄 cngpconstant.java

📁 移动CMPP的网关,JAVA又一实现,非常完整的代码.
💻 JAVA
字号:

package com.grail.comm.cngp;

import com.grail.util.Resource;

/**
 * <p>Title: 短信 项目</p>
 *
 * <p>Description:网通CNGP协议常量</p>
 *
 * <p>Copyright: Copyright (c) 2004 合力阳光</p>
 *
 * <p>Company: 合力阳光</p>
 * @author ray/刘有为
 * @version 1.0
 */
public class CNGPConstant
{

    public static boolean debug;
    public static String LOGINING;
    public static String LOGIN_ERROR;
    public static String SEND_ERROR;
    public static String CONNECT_TIMEOUT;
    public static String STRUCTURE_ERROR;
    public static String NONLICETSP_ID;
    public static String SP_ERROR;
    public static String VERSION_ERROR;
    public static String OTHER_ERROR;
    public static String HEARTBEAT_ABNORMITY;
    public static String SUBMIT_INPUT_ERROR;
    public static String FORWARD_INPUT_ERROR;
    public static String MTROUTEUPDATE_INPUT_ERROR;
    public static String MOROUTEUPDATE_INPUT_ERROR;
    public static String CONNECT_INPUT_ERROR;
    public static String CANCEL_INPUT_ERROR;
    public static String QUERY_INPUT_ERROR;
    public static String DELIVER_REPINPUT_ERROR;
    public static String ACTIVE_REPINPUT_ERROR;
    public static String SMC_MESSAGE_ERROR;
    public static String INT_SCOPE_ERROR;
    public static String STRING_LENGTH_GREAT;
    public static String STRING_NULL;
    public static String VALUE_ERROR;
    public static String FEE_USERTYPE_ERROR;
    public static String REGISTERED_DELIVERY_ERROR;
    public static String PK_TOTAL_ERROR;
    public static String PK_NUMBER_ERROR;
    public static String NEEDREPORT_ERROR;
    public static String PRIORITY_ERROR;
    public static String DESTTERMID_ERROR;
    public static final int Login_Request_Id = 1;
    public static final int Login_Resp_Request_Id = 0x80000001;
    public static final int Submit_Request_Id = 2;
    public static final int Submit_Resp_Request_Id = 0x80000002;
    public static final int Deliver_Request_Id = 3;
    public static final int Deliver_Resp_Request_Id = 0x80000003;
    public static final int Active_Test_Request_Id = 4;
    public static final int Active_Test_Resp_Request_Id = 0x80000004;
    public static final int Forward_Request_Id = 5;
    public static final int Forward_Resp_Request_Id = 0x80000005;
    public static final int Exit_Request_Id = 6;
    public static final int Exit_Resp_Request_Id = 0x80000006;

    public CNGPConstant()
    {
    }

    public static void initConstant(Resource resource)
    {
        if(LOGINING == null)
        {
            LOGINING = resource.get("smproxy/logining");
            LOGIN_ERROR = resource.get("smproxy/login-error");
            SEND_ERROR = resource.get("smproxy/send-error");
            CONNECT_TIMEOUT = resource.get("smproxy/connect-timeout");
            STRUCTURE_ERROR = resource.get("smproxy/structure-error");
            NONLICETSP_ID = resource.get("smproxy/nonlicetsp-id");
            SP_ERROR = resource.get("smproxy/sp-error");
            VERSION_ERROR = resource.get("smproxy/version-error");
            OTHER_ERROR = resource.get("smproxy/other-error");
            HEARTBEAT_ABNORMITY = resource.get("smproxy/heartbeat-abnormity");
            SUBMIT_INPUT_ERROR = resource.get("smproxy/submit-input-error");
            CONNECT_INPUT_ERROR = resource.get("smproxy/connect-input-error");
            CANCEL_INPUT_ERROR = resource.get("smproxy/cancel-input-error");
            QUERY_INPUT_ERROR = resource.get("smproxy/query-input-error");
            DELIVER_REPINPUT_ERROR = resource.get("smproxy/deliver-repinput-error");
            ACTIVE_REPINPUT_ERROR = resource.get("smproxy/active-repinput-error");
            SMC_MESSAGE_ERROR = resource.get("smproxy/smc-message-error");
            INT_SCOPE_ERROR = resource.get("smproxy/int-scope-error");
            STRING_LENGTH_GREAT = resource.get("smproxy/string-length-great");
            STRING_NULL = resource.get("smproxy/string-null");
            VALUE_ERROR = resource.get("smproxy/value-error");
            FEE_USERTYPE_ERROR = resource.get("smproxy/fee-usertype-error");
            REGISTERED_DELIVERY_ERROR = resource.get("smproxy/registered-delivery-erro");
            PK_TOTAL_ERROR = resource.get("smproxy/pk-total-error");
            PK_NUMBER_ERROR = resource.get("smproxy/pk-number-error");
            FORWARD_INPUT_ERROR = resource.get("smproxy/forward_input_error");
            MTROUTEUPDATE_INPUT_ERROR = resource.get("smproxy/mtrouteupdate_input_error");
            MOROUTEUPDATE_INPUT_ERROR = resource.get("smproxy/morouteupdate_input_error");
            NEEDREPORT_ERROR = resource.get("smproxy/needreport_error");
            PRIORITY_ERROR = resource.get("smproxy/priority_error");
            DESTTERMID_ERROR = resource.get("smproxy/desttermid_error");
        }
    }
}

⌨️ 快捷键说明

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