/*
 * 文件名：com.wintao.ris.common.Constants.java
 * <p>
 * <li>简述：公有常量类，所有组件均可以使用</li>
 * </p>
 * @Copyright: Copyright (c) 2013 yanxf
 * 修改内容：[新增]
 * 修改时间：2013-4-29 下午10:01:26
 * 修改人：yanxf
 * @since 1.0
 * @version 1.0
 */

package com.yisin.dbc.util;

/**
 * <p>
 * 常量定义，包括常用数字，字符串，字符集，mime等
 * </p>
 * 
 * @author yanxf
 * @since 1.0
 * @see
 */
public interface Constants
{

    /**
     * 数字0
     */
    public static final int NUM_INT0 = 0;
    /**
     * 数字1
     */
    public static final int NUM_INT1 = 1;
    /**
     * 数字2
     */
    public static final int NUM_INT2 = 2;
    /**
     * 数字3
     */
    public static final int NUM_INT3 = 3;
    /**
     * 数字4
     */
    public static final int NUM_INT4 = 4;
    /**
     * 数字5
     */
    public static final int NUM_INT5 = 5;
    /**
     * 数字6
     */
    public static final int NUM_INT6 = 6;
    /**
     * 数字7
     */
    public static final int NUM_INT7 = 7;
    /**
     * 数字8
     */
    public static final int NUM_INT8 = 8;
    /**
     * 数字9
     */
    public static final int NUM_INT9 = 9;
    /**
     * 数字10
     */
    public static final int NUM_INT10 = 10;
    /**
     * 数字11
     */
    public static final int NUM_INT11 = 11;
    /**
     * 数字12
     */
    public static final int NUM_INT12 = 12;
    /**
     * 数字13
     */
    public static final int NUM_INT13 = 13;
    /**
     * 数字14
     */
    public static final int NUM_INT14 = 14;
    /**
     * 数字15
     */
    public static final int NUM_INT15 = 15;
    /**
     * 数字16
     */
    public static final int NUM_INT16 = 16;
    /**
     * 数字17
     */
    public static final int NUM_INT17 = 17;
    /**
     * 数字18
     */
    public static final int NUM_INT18 = 18;
    /**
     * 数字19
     */
    public static final int NUM_INT19 = 19;
    /**
     * 数字20
     */
    public static final int NUM_INT20 = 20;
    /**
     * 数字21
     */
    public static final int NUM_INT21 = 21;
    /**
     * 数字22
     */
    public static final int NUM_INT22 = 22;
    /**
     * 数字23
     */
    public static final int NUM_INT23 = 23;
    /**
     * 数字24
     */
    public static final int NUM_INT24 = 24;
    /**
     * 数字25
     */
    public static final int NUM_INT25 = 25;
    /**
     * 数字26
     */
    public static final int NUM_INT26 = 26;
    /**
     * 数字27
     */
    public static final int NUM_INT27 = 27;
    /**
     * 数字28
     */
    public static final int NUM_INT28 = 28;
    /**
     * 数字29
     */
    public static final int NUM_INT29 = 29;
    /**
     * 数字30
     */
    public static final int NUM_INT30 = 30;
    /**
     * 数字31
     */
    public static final int NUM_INT31 = 31;
    /**
     * 数字32
     */
    public static final int NUM_INT32 = 32;
    /**
     * 数字33
     */
    public static final int NUM_INT33 = 33;
    /**
     * 数字34
     */
    public static final int NUM_INT34 = 34;
    /**
     * 数字35
     */
    public static final int NUM_INT35 = 35;
    /**
     * 数字36
     */
    public static final int NUM_INT36 = 36;
    /**
     * 数字37
     */
    public static final int NUM_INT37 = 37;
    /**
     * 数字38
     */
    public static final int NUM_INT38 = 38;
    /**
     * 数字39
     */
    public static final int NUM_INT39 = 39;
    /**
     * 数字40
     */
    public static final int NUM_INT40 = 40;
    /**
     * 数字41
     */
    public static final int NUM_INT41 = 41;
    /**
     * 数字42
     */
    public static final int NUM_INT42 = 42;
    /**
     * 数字43
     */
    public static final int NUM_INT43 = 43;
    /**
     * 数字44
     */
    public static final int NUM_INT44 = 44;
    /**
     * 数字45
     */
    public static final int NUM_INT45 = 45;
    /**
     * 数字46
     */
    public static final int NUM_INT46 = 46;
    /**
     * 数字47
     */
    public static final int NUM_INT47 = 47;
    /**
     * 数字48
     */
    public static final int NUM_INT48 = 48;
    /**
     * 数字49
     */
    public static final int NUM_INT49 = 49;
    /**
     * 数字50
     */
    public static final int NUM_INT50 = 50;
    /**
     * 数字51
     */
    public static final int NUM_INT51 = 51;
    /**
     * 数字52
     */
    public static final int NUM_INT52 = 52;
    /**
     * 数字53
     */
    public static final int NUM_INT53 = 53;
    /**
     * 数字54
     */
    public static final int NUM_INT54 = 54;
    /**
     * 数字55
     */
    public static final int NUM_INT55 = 55;
    /**
     * 数字56
     */
    public static final int NUM_INT56 = 56;
    /**
     * 数字57
     */
    public static final int NUM_INT57 = 57;
    /**
     * 数字58
     */
    public static final int NUM_INT58 = 58;
    /**
     * 数字59
     */
    public static final int NUM_INT59 = 59;
    /**
     * 数字60
     */
    public static final int NUM_INT60 = 60;
    /**
     * 数字61
     */
    public static final int NUM_INT61 = 61;
    /**
     * 数字62
     */
    public static final int NUM_INT62 = 62;
    /**
     * 数字63
     */
    public static final int NUM_INT63 = 63;
    /**
     * 数字64
     */
    public static final int NUM_INT64 = 64;
    /**
     * 数字65
     */
    public static final int NUM_INT65 = 65;
    /**
     * 数字66
     */
    public static final int NUM_INT66 = 66;
    /**
     * 数字67
     */
    public static final int NUM_INT67 = 67;
    /**
     * 数字68
     */
    public static final int NUM_INT68 = 68;
    /**
     * 数字69
     */
    public static final int NUM_INT69 = 69;
    /**
     * 数字常量70
     */
    public static final int NUM_INT70 = 70;
    /**
     * 数字常量71
     */
    public static final int NUM_INT71 = 71;
    /**
     * 数字常量72
     */
    public static final int NUM_INT72 = 72;
    /**
     * 数字常量73
     */
    public static final int NUM_INT73 = 73;
    /**
     * 数字常量74
     */
    public static final int NUM_INT74 = 74;
    /**
     * 数字常量75
     */
    public static final int NUM_INT75 = 75;
    /**
     * 数字常量76
     */
    public static final int NUM_INT76 = 76;
    /**
     * 数字常量77
     */
    public static final int NUM_INT77 = 77;
    /**
     * 数字常量78
     */
    public static final int NUM_INT78 = 78;
    /**
     * 数字常量79
     */
    public static final int NUM_INT79 = 79;
    /**
     * 数字常量80
     */
    public static final int NUM_INT80 = 80;
    /**
     * 数字常量81
     */
    public static final int NUM_INT81 = 81;
    /**
     * 数字常量82
     */
    public static final int NUM_INT82 = 82;
    /**
     * 数字常量83
     */
    public static final int NUM_INT83 = 83;
    /**
     * 数字常量84
     */
    public static final int NUM_INT84 = 84;
    /**
     * 数字常量85
     */
    public static final int NUM_INT85 = 85;
    /**
     * 数字常量86
     */
    public static final int NUM_INT86 = 86;
    /**
     * 数字常量87
     */
    public static final int NUM_INT87 = 87;
    /**
     * 数字常量88
     */
    public static final int NUM_INT88 = 88;
    /**
     * 数字常量89
     */
    public static final int NUM_INT89 = 89;
    /**
     * 数字常量90
     */
    public static final int NUM_INT90 = 90;
    /**
     * 数字常量91
     */
    public static final int NUM_INT91 = 91;
    /**
     * 数字常量92
     */
    public static final int NUM_INT92 = 92;
    /**
     * 数字常量93
     */
    public static final int NUM_INT93 = 93;
    /**
     * 数字常量94
     */
    public static final int NUM_INT94 = 94;
    /**
     * 数字常量95
     */
    public static final int NUM_INT95 = 95;
    /**
     * 数字常量96
     */
    public static final int NUM_INT96 = 96;
    /**
     * 数字常量97
     */
    public static final int NUM_INT97 = 97;
    /**
     * 数字常量98
     */
    public static final int NUM_INT98 = 98;
    /**
     * 数字常量99
     */
    public static final int NUM_INT99 = 99;
    /**
     * 数字常量100
     */
    public static final int NUM_INT100 = 100;
    /**
     * 数字常量122
     */
    public static final int NUM_INT122 = 122;
    /**
     * 数字常量128
     */
    public static final int NUM_INT128 = 128;
    /**
     * 数字常量127
     */
    public static final int NUM_INT127 = 127;
    /**
     * 数字常量255
     */
    public static final int NUM_INT255 = 255;
    /**
     * 数字常量256
     */
    public static final int NUM_INT256 = 256;
    /**
     * 数字常量400
     */
    public static final int NUM_INT400 = 400;
    /**
     * 数字常量1000
     */
    public static final int NUM_INT1000 = 1000;
    /**
     * 数字常量1024
     */
    public static final int NUM_INT1024 = 1024;
    /**
     * 数字常量2048
     */
    public static final int NUM_INT2048 = 2048;
    /**
     * 数字常量4096
     */
    public static final int NUM_INT4096 = 4096;
    /**
     * 数字常量8192
     */
    public static final int NUM_INT8192 = 8192;
    
    /**
     * 数字10000
     */
    public static final int NUM_INT10000 = 10000;
    /**
     * 数字常量65535
     */
    public static final int NUM_INT65535 = 65535;
    /**
     * http get请求
     */
    public static final String HTTP_GET = "GET";
    /**
     * http post请求
     */
    public static final String HTTP_POST = "POST";
    /**
     * 图片gif类型
     */
    public static final String IMAGE_GIF = "image/gif";
    /**
     * 图片jpeg类型
     */
    public static final String IMAGE_JPEG = "image/jpeg";
    /**
     * 图片png类型
     */
    public static final String IMAGE_PNG = "image/png";
    /**
     * 图片bmp类型
     */
    public static final String IMAGE_BMP = "application/x-bmp";
    /**
     * 字符集UTF8
     */
    public static final String CHARSET_UTF8 = "UTF-8";

    /**
     * 响应类型
     */
    public static final String TEXT_HTML_CHARSET_UTF8 =
            "text/html; charset=utf-8";

    /**
     * 字符集GBK
     */
    public static final String CHARSET_GBK = "GBK";
    /**
     * 字符集ISO8859-1
     */
    public static final String CHARSET_ISO88591 = "ISO8859-1";
    /**
     * md5摘要
     */
    public static final String DIGESST_MD5 = "MD5";
    /**
     * GZIP常量
     */
    public static final String G_ZIP = "gzip";
    /**
     * compress常量
     */
    public static final String COMPRESS = "compress";
    /**
     * deflate常量
     */
    public static final String DEFLATE = "deflate";
    /**
     * zlib常量
     */
    public static final String ZLIB = "zlib";
    /**
     * 字符?
     */
    public static final String CHAR_QUESETION = "?";
    /**
     * 字符&
     */
    public static final String CHAR_AND = "&";
    /**
     * 字符=
     */
    public static final String CHAR_EQUAL = "=";
    /**
     * http协议内容编码，是否采用压缩等
     */
    public static final String CONTENT_ENCODING = "Content-Encoding";
    /**
     * 流mime
     */
    public static final String APPLICATION_OCTET_STREAM =
            "application/octet-stream";
    /**
     * https协议名字
     */
    public static final String HTTPS = "https";
    /**
     * http协议名字
     */
    public static final String HTTP = "http";

    /**
     * tils通信名称
     */
    public static final String TLS = "TLS";

    /**
     * SSL通信名称
     */
    public static final String SSL = "SSL";

    /**
     * SSLv2通信名称
     */
    public static final String SSLV2 = "SSLv2";

    /**
     * 中文zh
     */
    public static final String LANG_ZH = "zh";

    /**
     * 英文en
     */
    public static final String LANG_EN = "en";
    
    /**
     * meta-inf目录
     */
    public static final String META_INF =  "META-INF";
    
	/**
	 * classpath：字符串
	 */
	public static final String STRING_CLASSPATH_PREFIX = "classpath:";

	/**
	 * 逗号分隔符
	 */
	public static final String STRING_DH = ",";

	/**
	 * 模板文件路径名
	 */
	public static final String TEMPLATE_FILE_PATH = "templateFilePath";

	/**
	 * wsif配置条目id属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_ID = "id";

	/**
	 * wsif配置条目alias属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_ALIAS = "alias";

	/**
	 * wsif配置条目type属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_TYPE = "type";

	/**
	 * wsif配置条目className属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_CLASSNAME = "className";

	/**
	 * wsif配置条目path属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_PATH = "path";

	/**
	 * wsif配置条目need-init属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_NEEDINIT = "need-init";

	/**
	 * wsif配置条目description属性名
	 */
	public static final String TEMPLATE_CONFIG_ATTR_DESCRIPTION = "description";

	/**
	 * 工程根目录常量，在web.xml文件中配置
	 */
	public static final String WSIF_ROOT = "WSIF.ROOT";

	public static final String SERIAL_VERSION_ID = "serialVersionUID";

	/**
	 * 保存用户信息到session中去
	 */
	public static final String WEB_USER_SESSION_KEY = "webUserSessionKey";

	/**
	 * 验证码
	 */
	public final static String VERIFY_CODE = "VERIFY_CODE";
	/**
	 * 自定义请求时候返回错误,登陆错误
	 */
	public final static int NO_LOGIN_ERROR = 2001;

	/**
	 * 自定义请求时候返回错误,xss特殊字符
	 */
	public final static int XSS_PARAM_ERROR = 2002;

	/**
	 * 自定义请求时候返回错误,xss特殊字符
	 */
	public final static int PARAM_BIND_EXCEPTION = 2004;
	/**
	 * 自定义请求时候返回错误,sql异常
	 */
	public final static int SQL_EXCEPTION = 2005;
	/**
	 * 自定义请求时候返回错误,未知异常或错误
	 */
	public final static int UNKNOWN_ERROR = 2006;
	/**
	 * 自定义请求时候返回错误,无权限
	 */
	public final static int NO_RIGHTS_ACCESS = 2007;

	/**
	 * 中文语言
	 */
	public static final String LANGUAGE_ZH = "zh";
	/**
	 * 英文语言
	 */
	public static final String LANGUAGE_EN = "en";

	/**
	 * 验证码默认请求地址
	 */
	public static final String VERFY_CODE_URL = "/verifyCode.jpg";

	/**
	 * context-param: WSIFConfigLocation系统wsif配置文件名称
	 */
	public static final String WSIF_CONFIG_LOCATION = "WSIFConfigLocation";
	
	/**
	 * 上下文监听器事件常量
	 */
	public static final String CONTEXT_EVENT = "context-event";
	/**
	 * session监听器事件常量
	 */
	public static final String SESSION_EVENT = "session-event";
	
	/**
	 * filter监听器事件常量
	 */
	public static final String FILTER_EVENT = "filter-event";
	
	/**
	 * 拦截器监听器事件常量
	 */
	public static final String INTERCEPTOR_EVENT = "interceptor-event";
	
	/**
	 * csrf安全检查请求头
	 */
	public static final String CSRF_SECURITY_TOKEN = "csrfToken";
	
	/**
	 * 字符串unknow
	 */
	public static final String STRING_UNKNOW = "unknown";
	
	/**
	 * 字符串X-Forwarded-For
	 */
	public static final String X_FORWARD_FOR = "X-Forwarded-For";
	
	/**
	 * 字符串Proxy-Client-IP
	 */
	public static final String PROXY_CLIENT_IP = "Proxy-Client-IP";
	
	/**
	 * 字符串WL-Proxy-Client-IP
	 */
	public static final String WL_PROXY_CLIENT_IP = "WL-Proxy-Client-IP";
	
	/**
	 * 字符串x-requested-with
	 */
	public static final String X_REQUESTED_WITH = "x-requested-with";
	/**
	 * 字符串XMLHttpRequest
	 */	
	public static final String XML_HTTP_REQUEST = "XMLHttpRequest";
	
	/**
	 * mybatis: 处理类名称
	 */
	public static final String MYBATIS_DIALECT_CLASS =  "DialectClass";
	/**
	 * mybatis: 处理类别
	 */
	public static final String MYBATIS_DIALECT =  "Dialect";
	
	/**
	 * 系统配置文件别名
	 */
	public static final String CONFIG = "config";
	
	/**
	 * 系统事件别名
	 */
	public static final String EVENTS = "events";
	
	/**
     * 日期格式字符串常量 "yyyy-MM-dd"
     */
    public static final String PATTERN_DATE = "yyyy-MM-dd";

    /**
     * 日期+时间格式字符串常量 "yyyy-MM-dd HH:mm:ss"
     */
    public static final String PATTERN_DATE_TIME = "yyyy-MM-dd HH:mm:ss";
    
    /**
     * 后台代码逻辑引起的错误，都统称为“内部服务器错误”
     */
    public static final String SYSTEM_ERROR = "内部服务器错误";
    
    public static final String RUIXUE_SDK_CONFIG_KEY = "RuixueSdkConfig";
    public static final String RUIXUE_APP_KEY = "appkey";
    public static final String RUIXUE_APP_SECRET = "appsecret";
    public static final String RUIXUE_APP_ROPURL = "ropurl";
    public static final String RUIXUE_APP_FORMAT = "format";
    
}
