View Javadoc
1   package gboat2.base.bridge;
2   
3   /**
4    * 整个平台的全局常量接口
5    * @date 2013-12-4
6    * @author hemw
7    * @since 2.1.2-SNAPSHOT
8    */
9   public interface GboatAppConstants {
10      /** javaWeb 应用的根目录 key: {@value} */
11      String WEBAPP_ROOT_KEY = "webapp.gboat2.root";
12      
13      /** ISO-8859-1 编码,值为:{@value} */
14      String ENCODING_ISO88591 = "ISO-8859-1";
15      
16      /** UTF-8 编码,值为:{@value} */
17      String ENCODING_UTF8 = "UTF-8";
18      
19      /** GBK 编码,值为:{@value} */
20      String ENCODING_GBK = "GBK";
21      
22      /** ContentType: {@value} */
23      String CT_HTML_UTF8 = "text/html;charset=utf-8";
24      /** ContentType: {@value} */
25      String CT_JOSN_UTF8 = "text/json;charset=utf-8";
26      /** ContentType: {@value} */
27      String CT_PLAIN_UTF8 = "text/plain;charset=utf-8";
28      
29      /** Struts org.apache.struts2.components.Include 类的 getContextRelativePath() 方法计算相对路径时,需要用到的 key  */
30      String INCLUDE_SERVLET_PATH_KEY = "javax.servlet.include.servlet_path";
31  }