KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > web > Constants


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.deployment.web;
25
26 /**
27  * Constants used by the various web descriptors.
28  * @author James Todd [gonzo@eng.sun.com]
29  * @author Danny Coward
30  */

31
32 public class Constants {
33
34     public static final String JavaDoc ConfigFile = "web.xml";
35
36     public static final String JavaDoc WebApp = "web-app";
37     public static final String JavaDoc Servlet = "servlet";
38     public static final String JavaDoc ServletName = "servlet-name";
39     public static final String JavaDoc ServletClass = "servlet-class";
40     public static String JavaDoc JSP_FILENAME = "jsp-file";
41     public static String JavaDoc LOAD_ON_START_UP = "load-on-startup";
42
43     public static final String JavaDoc Filter = "filter";
44     public static final String JavaDoc FilterMapping = "filter-mapping";
45     public static final String JavaDoc FilterClass = "filter-class";
46     public static final String JavaDoc FilterName = "filter-name";
47
48     public static final String JavaDoc Parameter = "init-param";
49     public static String JavaDoc CONTEXT_PARAMETER = "context-param";
50     public static final String JavaDoc ParameterName = "param-name";
51     public static final String JavaDoc ParameterValue = "param-value";
52     public static final String JavaDoc MIMEMapping = "mime-mapping";
53     public static final String JavaDoc MIMEMappingExtension = "extension";
54     public static final String JavaDoc MIMEMappingType = "mime-type";
55     public static final String JavaDoc ServletMapping = "servlet-mapping";
56     public static final String JavaDoc URLPattern = "url-pattern";
57     public static final String JavaDoc SessionTimeOut = "session-timeout";
58     public static final String JavaDoc WelcomeFileList = "welcome-file-list";
59     public static final String JavaDoc WelcomeFile = "welcome-file";
60     
61     public static String JavaDoc DISPLAY_NAME = "display-name";
62     public static String JavaDoc DESCRIPTION = "description";
63     public static String JavaDoc ICON = "icon";
64     public static String JavaDoc LARGE_ICON = "large-icon";
65     public static String JavaDoc SMALL_ICON = "small-icon";
66     public static String JavaDoc DISTRIBUTABLE = "distributable";
67     
68     public static String JavaDoc ERROR_PAGE = "error-page";
69     public static String JavaDoc ERROR_CODE = "error-code";
70     public static String JavaDoc EXCEPTION_TYPE = "exception-type";
71     public static String JavaDoc LOCATION = "location";
72     
73     public static String JavaDoc LISTENER = "listener";
74     public static String JavaDoc LISTENER_CLASS = "listener-class";
75
76     public static String JavaDoc ENVIRONMENT_ENTRY = "env-entry";
77     public static String JavaDoc ENVIRONMENT_NAME = "env-entry-name";
78     public static String JavaDoc ENVIRONMENT_VALUE = "env-entry-value";
79     public static String JavaDoc ENVIRONMENT_TYPE = "env-entry-type";
80     
81     
82     public static String JavaDoc RESOURCE_REFERENCE = "resource-ref";
83     public static String JavaDoc RESOURCE_REFERENCE_NAME = "res-ref-name";
84     public static String JavaDoc RESOURCE_TYPE = "res-type";
85     public static String JavaDoc RESOURCE_AUTHORIZATION = "res-auth";
86     
87
88     public static String JavaDoc RESOURCE_ENV_REFERENCE = "resource-env-ref";
89     public static String JavaDoc RESOURCE_ENV_REFERENCE_NAME = "resource-env-ref-name";
90     public static String JavaDoc RESOURCE_ENV_REFERENCE_TYPE = "resource-env-ref-type";
91
92     public static String JavaDoc SECURITY_ROLE = "security-role";
93     public static String JavaDoc ROLE_NAME = "role-name";
94     public static String JavaDoc NAME = "name";
95     
96     public static String JavaDoc SECURITY_CONSTRAINT = "security-constraint";
97     public static String JavaDoc WEB_RESOURCE_COLLECTION = "web-resource-collection";
98     public static String JavaDoc AUTH_CONSTRAINT = "auth-constraint";
99     public static String JavaDoc USERDATA_CONSTRAINT = "user-data-constraint";
100     public static String JavaDoc TRANSPORT_GUARANTEE = "transport-guarantee";
101     public static String JavaDoc WEB_RESOURCE_NAME = "web-resource-name";
102     public static String JavaDoc URL_PATTERN = "url-pattern";
103     public static String JavaDoc HTTP_METHOD = "http-method";
104     
105     public static String JavaDoc SECURITY_ROLE_REFERENCE = "security-role-ref";
106     public static String JavaDoc ROLE_LINK = "role-link";
107     
108     
109     public static String JavaDoc EJB_REFERENCE = "ejb-ref";
110     public static String JavaDoc EJB_LOCAL_REFERENCE = "ejb-local-ref";
111     public static String JavaDoc EJB_NAME = "ejb-ref-name";
112     public static String JavaDoc EJB_TYPE = "ejb-ref-type";
113     public static String JavaDoc EJB_HOME = "home";
114     public static String JavaDoc EJB_REMOTE = "remote";
115     public static String JavaDoc EJB_LOCAL_HOME = "local-home";
116     public static String JavaDoc EJB_LOCAL = "local";
117     public static String JavaDoc EJB_LINK = "ejb-link";
118     public static String JavaDoc RUN_AS = "run-as";
119         
120     public static final String JavaDoc SESSION_CONFIG = "session-config";
121     
122     public static String JavaDoc LOGIN_CONFIG = "login-config";
123     public static String JavaDoc AUTH_METHOD = "auth-method";
124     public static String JavaDoc REALM_NAME = "realm-name";
125     public static String JavaDoc FORM_LOGIN_CONFIG = "form-login-config";
126     public static String JavaDoc FORM_LOGIN_PAGE = "form-login-page";
127     public static String JavaDoc FORM_ERROR_PAGE = "form-error-page";
128
129     /* -----
130     ** TagLibConfiguration (TagLib reference)
131     */

132
133     public static final String JavaDoc TAGLIB = "taglib";
134     public static final String JavaDoc TAGLIB_URI = "taglib-uri";
135     public static final String JavaDoc TAGLIB_LOCATION = "taglib-location";
136
137     /* -----
138     ** TagLib tags
139     */

140
141     public static final String JavaDoc TagLib = "taglib";
142     public static final String JavaDoc TagLib_VERSION = "tlibversion";
143     public static final String JavaDoc TagLib_JSPVERSION = "jspversion";
144     public static final String JavaDoc TagLib_SHORTNAME = "shortname";
145     public static final String JavaDoc TagLib_URI = "uri";
146     public static final String JavaDoc TagLib_INFO = "info";
147     public static final String JavaDoc TagLib_TAGS = "tag";
148
149     public static final String JavaDoc Tag_NAME = "name";
150     public static final String JavaDoc Tag_CLASS = "tagclass";
151     public static final String JavaDoc Tag_EXTRA_INFO = "teiclass";
152     public static final String JavaDoc Tag_BODYCONTENT = "bodycontent";
153     public static final String JavaDoc Tag_INFO = "info";
154     public static final String JavaDoc Tag_ATTRS = "attribute";
155
156     public static final String JavaDoc TagAttr_NAME = "name";
157     public static final String JavaDoc TagAttr_REQUIRED = "required";
158     public static final String JavaDoc TagAttr_ALLOWEXPR = "rtexprvalue";
159     public static final String JavaDoc TagAttr_TYPE = "type";
160
161     public static final String JavaDoc TagLib12_VERSION = "tlib-version";
162     public static final String JavaDoc TagLib12_JSPVERSION = "jsp-version";
163     public static final String JavaDoc TagLib12_SHORTNAME = "short-name";
164     public static final String JavaDoc TagLib12_URI = TagLib_URI;
165     public static final String JavaDoc TagLib12_DISPLAYNAME = DISPLAY_NAME;
166     public static final String JavaDoc TagLib12_SMALLICON = SMALL_ICON;
167     public static final String JavaDoc TagLib12_LARGEICON = LARGE_ICON;
168     public static final String JavaDoc TagLib12_DESCRIPTION = DESCRIPTION;
169     public static final String JavaDoc TagLib12_VALIDATOR = "validator";
170     public static final String JavaDoc TagLib12_LISTENER = LISTENER;
171     public static final String JavaDoc TagLib12_TAGS = TagLib_TAGS;
172
173     public static final String JavaDoc TagList12_CLASS = LISTENER_CLASS;
174
175     public static final String JavaDoc TagVal12_CLASS = "validator-class";
176     public static final String JavaDoc TagVal12_INIT_PARMS = Parameter;
177
178     public static final String JavaDoc Tag12_NAME = Tag_NAME;
179     public static final String JavaDoc Tag12_CLASS = "tag-class";
180     public static final String JavaDoc Tag12_EXTRA_INFO = "tei-class";
181     public static final String JavaDoc Tag12_BODYCONTENT = "body-content";
182     public static final String JavaDoc Tag12_DISPLAYNAME = DISPLAY_NAME;
183     public static final String JavaDoc Tag12_SMALLICON = SMALL_ICON;
184     public static final String JavaDoc Tag12_LARGEICON = LARGE_ICON;
185     public static final String JavaDoc Tag12_DESCRIPTION = DESCRIPTION;
186     public static final String JavaDoc Tag12_VARIABLE = "variable";
187     public static final String JavaDoc Tag12_ATTRS = Tag_ATTRS;
188
189     public static final String JavaDoc TagVar12_NAME_GIVEN = "name-given";
190     public static final String JavaDoc TagVar12_NAME_ATTR = "name-from-attribute";
191     public static final String JavaDoc TagVar12_CLASS = "variable-class";
192     public static final String JavaDoc TagVar12_DECLARE = "declare";
193     public static final String JavaDoc TagVar12_SCOPE = "scope";
194
195 }
196
197
Popular Tags