001: /*
002: * $Id: StrutsConstants.java 560881 2007-07-30 07:05:55Z rgielen $
003: *
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021: package org.apache.struts2;
022:
023: import org.apache.struts2.dispatcher.mapper.CompositeActionMapper;
024:
025: /**
026: * This class provides a central location for framework configuration keys
027: * used to retrieve and store Struts configuration settings.
028: */
029: public final class StrutsConstants {
030:
031: /** Whether Struts is in development mode or not */
032: public static final String STRUTS_DEVMODE = "struts.devMode";
033:
034: /** Whether the localization messages should automatically be reloaded */
035: public static final String STRUTS_I18N_RELOAD = "struts.i18n.reload";
036:
037: /** The encoding to use for localization messages */
038: public static final String STRUTS_I18N_ENCODING = "struts.i18n.encoding";
039:
040: /** Whether to reload the XML configuration or not */
041: public static final String STRUTS_CONFIGURATION_XML_RELOAD = "struts.configuration.xml.reload";
042:
043: /** The URL extension to use to determine if the request is meant for a Struts action */
044: public static final String STRUTS_ACTION_EXTENSION = "struts.action.extension";
045:
046: /** Whether to use the alterative syntax for the tags or not */
047: public static final String STRUTS_TAG_ALTSYNTAX = "struts.tag.altSyntax";
048:
049: /** The HTTP port used by Struts URLs */
050: public static final String STRUTS_URL_HTTP_PORT = "struts.url.http.port";
051:
052: /** The HTTPS port used by Struts URLs */
053: public static final String STRUTS_URL_HTTPS_PORT = "struts.url.https.port";
054:
055: /** The default includeParams method to generate Struts URLs */
056: public static final String STRUTS_URL_INCLUDEPARAMS = "struts.url.includeParams";
057:
058: /** The com.opensymphony.xwork2.ObjectFactory implementation class */
059: public static final String STRUTS_OBJECTFACTORY = "struts.objectFactory";
060:
061: /** The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class */
062: public static final String STRUTS_OBJECTTYPEDETERMINER = "struts.objectTypeDeterminer";
063:
064: /** The package containing actions that use Rife continuations */
065: public static final String STRUTS_CONTINUATIONS_PACKAGE = "struts.continuations.package";
066:
067: /** The org.apache.struts2.config.Configuration implementation class */
068: public static final String STRUTS_CONFIGURATION = "struts.configuration";
069:
070: /** The default locale for the Struts application */
071: public static final String STRUTS_LOCALE = "struts.locale";
072:
073: /** Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic */
074: public static final String STRUTS_DISPATCHER_PARAMETERSWORKAROUND = "struts.dispatcher.parametersWorkaround";
075:
076: /** The org.apache.struts2.views.freemarker.FreemarkerManager implementation class */
077: public static final String STRUTS_FREEMARKER_MANAGER_CLASSNAME = "struts.freemarker.manager.classname";
078:
079: /** Cache Freemarker templates */
080: public static final String STRUTS_FREEMARKER_TEMPLATES_CACHE = "struts.freemarker.templatesCache";
081:
082: /** org.apache.struts2.views.velocity.VelocityManager implementation class */
083: public static final String STRUTS_VELOCITY_MANAGER_CLASSNAME = "struts.velocity.manager.classname";
084:
085: /** The Velocity configuration file path */
086: public static final String STRUTS_VELOCITY_CONFIGFILE = "struts.velocity.configfile";
087:
088: /** The location of the Velocity toolbox */
089: public static final String STRUTS_VELOCITY_TOOLBOXLOCATION = "struts.velocity.toolboxlocation";
090:
091: /** List of Velocity context names */
092: public static final String STRUTS_VELOCITY_CONTEXTS = "struts.velocity.contexts";
093:
094: /** The directory containing UI templates */
095: public static final String STRUTS_UI_TEMPLATEDIR = "struts.ui.templateDir";
096:
097: /** The default UI template theme */
098: public static final String STRUTS_UI_THEME = "struts.ui.theme";
099:
100: /** The maximize size of a multipart request (file upload) */
101: public static final String STRUTS_MULTIPART_MAXSIZE = "struts.multipart.maxSize";
102:
103: /** The directory to use for storing uploaded files */
104: public static final String STRUTS_MULTIPART_SAVEDIR = "struts.multipart.saveDir";
105:
106: /**
107: * The org.apache.struts2.dispatcher.multipart.MultiPartRequest parser implementation
108: * for a multipart request (file upload)
109: */
110: public static final String STRUTS_MULTIPART_PARSER = "struts.multipart.parser";
111:
112: /** Whether Spring should autoWire or not */
113: public static final String STRUTS_OBJECTFACTORY_SPRING_AUTOWIRE = "struts.objectFactory.spring.autoWire";
114:
115: /** Whether Spring should use its class cache or not */
116: public static final String STRUTS_OBJECTFACTORY_SPRING_USE_CLASS_CACHE = "struts.objectFactory.spring.useClassCache";
117:
118: /** Whether or not XSLT templates should not be cached */
119: public static final String STRUTS_XSLT_NOCACHE = "struts.xslt.nocache";
120:
121: /** Location of additional configuration properties files to load */
122: public static final String STRUTS_CUSTOM_PROPERTIES = "struts.custom.properties";
123:
124: /** Location of additional localization properties files to load */
125: public static final String STRUTS_CUSTOM_I18N_RESOURCES = "struts.custom.i18n.resources";
126:
127: /** The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class */
128: public static final String STRUTS_MAPPER_CLASS = "struts.mapper.class";
129:
130: /** Whether the Struts filter should serve static content or not */
131: public static final String STRUTS_SERVE_STATIC_CONTENT = "struts.serve.static";
132:
133: /** If static content served by the Struts filter should set browser caching header properties or not */
134: public static final String STRUTS_SERVE_STATIC_BROWSER_CACHE = "struts.serve.static.browserCache";
135:
136: /** Allows one to disable dynamic method invocation from the URL */
137: public static final String STRUTS_ENABLE_DYNAMIC_METHOD_INVOCATION = "struts.enable.DynamicMethodInvocation";
138:
139: /** Whether slashes in action names are allowed or not */
140: public static final String STRUTS_ENABLE_SLASHES_IN_ACTION_NAMES = "struts.enable.SlashesInActionNames";
141:
142: /** Prefix used by {@link CompositeActionMapper} to identify its containing {@link org.apache.struts2.dispatcher.mapper.ActionMapper} class. */
143: public static final String STRUTS_MAPPER_COMPOSITE = "struts.mapper.composite";
144:
145: public static final String STRUTS_ACTIONPROXYFACTORY = "struts.actionProxyFactory";
146:
147: public static final String STRUTS_FREEMARKER_WRAPPER_ALT_MAP = "struts.freemarker.wrapper.altMap";
148:
149: /** The name of the xwork converter implementation */
150: public static final String STRUTS_XWORKCONVERTER = "struts.xworkConverter";
151:
152: public static final String STRUTS_ALWAYS_SELECT_FULL_NAMESPACE = "struts.mapper.alwaysSelectFullNamespace";
153:
154: /** XWork default text provider */
155: public static final String STRUTS_XWORKTEXTPROVIDER = "struts.xworkTextProvider";
156:
157: /** The name of the parameter to create when mapping an id (used by some action mappers) */
158: public static final String STRUTS_ID_PARAMETER_NAME = "struts.mapper.idParameterName";
159:
160: }
|