01: // Copyright 2006, 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.internal;
16:
17: import org.apache.tapestry.services.Alias;
18:
19: public final class InternalConstants {
20: /**
21: * Init parameter used to identify the package from which application classes are loaded. Such
22: * classes are in the pages, components and mixins sub-packages.
23: */
24: public static final String TAPESTRY_APP_PACKAGE_PARAM = "tapestry.app-package";
25:
26: /**
27: * The application mode, generally "servlet", used to select the correct contributions to the
28: * {@link Alias} service.
29: */
30: public static final String TAPESTRY_ALIAS_MODE_SYMBOL = "tapestry.alias-mode";
31:
32: /**
33: * The name of the application (i.e., the name of the application filter). Used, for example, to
34: * select additional resources related to the application.
35: */
36: public static final String TAPESTRY_APP_NAME_SYMBOL = "tapestry.app-name";
37:
38: /**
39: * The extension used for Tapestry component template files. Template files are well-formed XML
40: * files. This is also used as the extension for page render requests (perhaps these will be
41: * split into two concepts later, especially if the we designate a particular extension for
42: * Tapestry template files, such as .tsp).
43: */
44: public static final String TEMPLATE_EXTENSION = "html";
45:
46: /** All purpose CSS class name for anything related to Tapestry errors. */
47: public static final String TAPESTRY_ERROR_CLASS = "t-error";
48:
49: /**
50: * The name of the query parameter that stores the page activation context inside an action
51: * request.
52: */
53: public static final String PAGE_CONTEXT_NAME = "t:ac";
54:
55: public static final String OBJECT_RENDER_DIV_SECTION = "t-env-data-section";
56:
57: private InternalConstants() {
58: }
59: }
|