1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2;
19
20 /***
21 * This class provides a central location for framework configuration keys
22 * used to retrieve and store Struts configuration settings.
23 */
24 public final class StrutsConstants {
25
26 /*** Whether Struts is in development mode or not */
27 public static final String STRUTS_DEVMODE = "struts.devMode";
28
29 /*** Whether the localization messages should automatically be reloaded */
30 public static final String STRUTS_I18N_RELOAD = "struts.i18n.reload";
31
32 /*** The encoding to use for localization messages */
33 public static final String STRUTS_I18N_ENCODING = "struts.i18n.encoding";
34
35 /*** Whether to reload the XML configuration or not */
36 public static final String STRUTS_CONFIGURATION_XML_RELOAD = "struts.configuration.xml.reload";
37
38 /*** The URL extension to use to determine if the request is meant for a Struts action */
39 public static final String STRUTS_ACTION_EXTENSION = "struts.action.extension";
40
41 /*** Whether to use the alterative syntax for the tags or not */
42 public static final String STRUTS_TAG_ALTSYNTAX = "struts.tag.altSyntax";
43
44 /*** The HTTP port used by Struts URLs */
45 public static final String STRUTS_URL_HTTP_PORT = "struts.url.http.port";
46
47 /*** The HTTPS port used by Struts URLs */
48 public static final String STRUTS_URL_HTTPS_PORT = "struts.url.https.port";
49
50 /*** The default includeParams method to generate Struts URLs */
51 public static final String STRUTS_URL_INCLUDEPARAMS = "struts.url.includeParams";
52
53 /*** The com.opensymphony.xwork2.ObjectFactory implementation class */
54 public static final String STRUTS_OBJECTFACTORY = "struts.objectFactory";
55
56 /*** The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class */
57 public static final String STRUTS_OBJECTTYPEDETERMINER = "struts.objectTypeDeterminer";
58
59 /*** The package containing actions that use Rife continuations */
60 public static final String STRUTS_CONTINUATIONS_PACKAGE = "struts.continuations.package";
61
62 /*** The org.apache.struts2.config.Configuration implementation class */
63 public static final String STRUTS_CONFIGURATION = "struts.configuration";
64
65 /*** The default locale for the Struts application */
66 public static final String STRUTS_LOCALE = "struts.locale";
67
68 /*** Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic */
69 public static final String STRUTS_DISPATCHER_PARAMETERSWORKAROUND = "struts.dispatcher.parametersWorkaround";
70
71 /*** The org.apache.struts2.views.freemarker.FreemarkerManager implementation class */
72 public static final String STRUTS_FREEMARKER_MANAGER_CLASSNAME = "struts.freemarker.manager.classname";
73
74 /*** org.apache.struts2.views.velocity.VelocityManager implementation class */
75 public static final String STRUTS_VELOCITY_MANAGER_CLASSNAME = "struts.velocity.manager.classname";
76
77 /*** The Velocity configuration file path */
78 public static final String STRUTS_VELOCITY_CONFIGFILE = "struts.velocity.configfile";
79
80 /*** The location of the Velocity toolbox */
81 public static final String STRUTS_VELOCITY_TOOLBOXLOCATION = "struts.velocity.toolboxlocation";
82
83 /*** List of Velocity context names */
84 public static final String STRUTS_VELOCITY_CONTEXTS = "struts.velocity.contexts";
85
86 /*** The directory containing UI templates */
87 public static final String STRUTS_UI_TEMPLATEDIR = "struts.ui.templateDir";
88
89 /*** The default UI template theme */
90 public static final String STRUTS_UI_THEME = "struts.ui.theme";
91
92 /*** The maximize size of a multipart request (file upload) */
93 public static final String STRUTS_MULTIPART_MAXSIZE = "struts.multipart.maxSize";
94
95 /*** The directory to use for storing uploaded files */
96 public static final String STRUTS_MULTIPART_SAVEDIR = "struts.multipart.saveDir";
97
98 /***
99 * The org.apache.struts2.dispatcher.multipart.MultiPartRequest parser implementation
100 * for a multipart request (file upload)
101 */
102 public static final String STRUTS_MULTIPART_PARSER = "struts.multipart.parser";
103
104 /*** Whether Spring should autoWire or not */
105 public static final String STRUTS_OBJECTFACTORY_SPRING_AUTOWIRE = "struts.objectFactory.spring.autoWire";
106
107 /*** Whether Spring should use its class cache or not */
108 public static final String STRUTS_OBJECTFACTORY_SPRING_USE_CLASS_CACHE = "struts.objectFactory.spring.useClassCache";
109
110 /*** Whether or not XSLT templates should not be cached */
111 public static final String STRUTS_XSLT_NOCACHE = "struts.xslt.nocache";
112
113 /*** Location of additional configuration properties files to load */
114 public static final String STRUTS_CUSTOM_PROPERTIES = "struts.custom.properties";
115
116 /*** Location of additional localization properties files to load */
117 public static final String STRUTS_CUSTOM_I18N_RESOURCES = "struts.custom.i18n.resources";
118
119 /*** The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class */
120 public static final String STRUTS_MAPPER_CLASS = "struts.mapper.class";
121
122 /*** Whether the Struts filter should serve static content or not */
123 public static final String STRUTS_SERVE_STATIC_CONTENT = "struts.serve.static";
124
125 /*** If static content served by the Struts filter should set browser caching header properties or not */
126 public static final String STRUTS_SERVE_STATIC_BROWSER_CACHE = "struts.serve.static.browserCache";
127
128 /*** Allows one to disable dynamic method invocation from the URL */
129 public static final String STRUTS_ENABLE_DYNAMIC_METHOD_INVOCATION = "struts.enable.DynamicMethodInvocation";
130
131 /*** A list of configuration files automatically loaded by Struts */
132 public static final String STRUTS_CONFIGURATION_FILES = "struts.configuration.files";
133 }