Blame SOURCES/web-app_2_3.dtd

fd6af7
fd6af7
 Licensed to the Apache Software Foundation (ASF) under one or more
fd6af7
  contributor license agreements.  See the NOTICE file distributed with
fd6af7
  this work for additional information regarding copyright ownership.
fd6af7
  The ASF licenses this file to You under the Apache License, Version 2.0
fd6af7
  (the "License"); you may not use this file except in compliance with
fd6af7
  the License.  You may obtain a copy of the License at
fd6af7
fd6af7
      http://www.apache.org/licenses/LICENSE-2.0
fd6af7
fd6af7
  Unless required by applicable law or agreed to in writing, software
fd6af7
  distributed under the License is distributed on an "AS IS" BASIS,
fd6af7
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fd6af7
  See the License for the specific language governing permissions and
fd6af7
  limitations under the License.
fd6af7
-->
fd6af7
fd6af7
fd6af7
This is the XML DTD for the Servlet 2.3 deployment descriptor.
fd6af7
All Servlet 2.3 deployment descriptors must include a DOCTYPE
fd6af7
of the following form:
fd6af7
fd6af7
  
fd6af7
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
fd6af7
    "http://java.sun.com/dtd/web-app_2_3.dtd">
fd6af7
fd6af7
-->
fd6af7
fd6af7
fd6af7
The following conventions apply to all J2EE deployment descriptor
fd6af7
elements unless indicated otherwise.
fd6af7
fd6af7
- In elements that contain PCDATA, leading and trailing whitespace
fd6af7
  in the data may be ignored.
fd6af7
fd6af7
- In elements whose value is an "enumerated type", the value is
fd6af7
  case sensitive.
fd6af7
fd6af7
- In elements that specify a pathname to a file within the same
fd6af7
  JAR file, relative filenames (i.e., those not starting with "/")
fd6af7
  are considered relative to the root of the JAR file's namespace.
fd6af7
  Absolute filenames (i.e., those starting with "/") also specify
fd6af7
  names in the root of the JAR file's namespace.  In general, relative
fd6af7
  names are preferred.  The exception is .war files where absolute
fd6af7
  names are preferred for consistency with the servlet API.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The web-app element is the root of the deployment descriptor for
fd6af7
a web application.
fd6af7
-->
fd6af7
fd6af7
context-param*, filter*, filter-mapping*, listener*, servlet*,
fd6af7
servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?,
fd6af7
error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*,
fd6af7
login-config?, security-role*, env-entry*, ejb-ref*,  ejb-local-ref*)>
fd6af7
fd6af7
fd6af7
The auth-constraint element indicates the user roles that should
fd6af7
be permitted access to this resource collection. The role-name
fd6af7
used here must either correspond to the role-name of one of the
fd6af7
security-role elements defined for this web application, or be
fd6af7
the specially reserved role-name "*" that is a compact syntax for
fd6af7
indicating all roles in the web application. If both "*" and
fd6af7
rolenames appear, the container interprets this as all roles.
fd6af7
If no roles are defined, no user is allowed access to the portion of
fd6af7
the web application described by the containing security-constraint.
fd6af7
The container matches role names case sensitively when determining
fd6af7
access.
fd6af7
fd6af7
fd6af7
Used in: security-constraint
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The auth-method element is used to configure the authentication
fd6af7
mechanism for the web application. As a prerequisite to gaining access to any web resources which are protected by an authorization
fd6af7
constraint, a user must have authenticated using the configured
fd6af7
mechanism. Legal values for this element are "BASIC", "DIGEST",
fd6af7
"FORM", or "CLIENT-CERT".
fd6af7
fd6af7
Used in: login-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The context-param element contains the declaration of a web
fd6af7
application's servlet context initialization parameters.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The description element is used to provide text describing the parent
fd6af7
element.  The description element should include any information that
fd6af7
the web application war file producer wants to provide to the consumer of
fd6af7
the web application war file (i.e., to the Deployer). Typically, the tools
fd6af7
used by the web application war file consumer will display the description
fd6af7
when processing the parent element that contains the description.
fd6af7
fd6af7
Used in: auth-constraint, context-param, ejb-local-ref, ejb-ref,
fd6af7
env-entry, filter, init-param, resource-env-ref, resource-ref, run-as,
fd6af7
security-role, security-role-ref, servlet, user-data-constraint,
fd6af7
web-app, web-resource-collection
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The display-name element contains a short name that is intended to be
fd6af7
displayed by tools.  The display name need not be unique.
fd6af7
fd6af7
Used in: filter, security-constraint, servlet, web-app
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<display-name>Employee Self Service</display-name>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The distributable element, by its presence in a web application
fd6af7
deployment descriptor, indicates that this web application is
fd6af7
programmed appropriately to be deployed into a distributed servlet
fd6af7
container
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-link element is used in the ejb-ref or ejb-local-ref
fd6af7
elements to specify that an EJB reference is linked to an
fd6af7
enterprise bean.
fd6af7
fd6af7
The name in the ejb-link element is composed of a
fd6af7
path name specifying the ejb-jar containing the referenced enterprise
fd6af7
bean with the ejb-name of the target bean appended and separated from
fd6af7
the path name by "#".  The path name is relative to the war file
fd6af7
containing the web application that is referencing the enterprise bean.
fd6af7
This allows multiple enterprise beans with the same ejb-name to be
fd6af7
uniquely identified.
fd6af7
fd6af7
Used in: ejb-local-ref, ejb-ref
fd6af7
fd6af7
Examples:
fd6af7
fd6af7
    <ejb-link>EmployeeRecord</ejb-link>
fd6af7
fd6af7
    <ejb-link>../products/product.jar#ProductEJB</ejb-link>
fd6af7
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-local-ref element is used for the declaration of a reference to
fd6af7
an enterprise bean's local home. The declaration consists of:
fd6af7
fd6af7
    - an optional description
fd6af7
    - the EJB reference name used in the code of the web application
fd6af7
      that's referencing the enterprise bean
fd6af7
    - the expected type of the referenced enterprise bean
fd6af7
    - the expected local home and local interfaces of the referenced
fd6af7
      enterprise bean
fd6af7
    - optional ejb-link information, used to specify the referenced
fd6af7
      enterprise bean
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
        local-home, local, ejb-link?)>
fd6af7
fd6af7
fd6af7
The ejb-ref element is used for the declaration of a reference to
fd6af7
an enterprise bean's home. The declaration consists of:
fd6af7
fd6af7
    - an optional description
fd6af7
    - the EJB reference name used in the code of
fd6af7
      the web application that's referencing the enterprise bean
fd6af7
    - the expected type of the referenced enterprise bean
fd6af7
    - the expected home and remote interfaces of the referenced
fd6af7
      enterprise bean
fd6af7
    - optional ejb-link information, used to specify the referenced
fd6af7
      enterprise bean
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
        home, remote, ejb-link?)>
fd6af7
fd6af7
fd6af7
The ejb-ref-name element contains the name of an EJB reference. The
fd6af7
EJB reference is an entry in the web application's environment and is
fd6af7
relative to the java:comp/env context.  The name must be unique
fd6af7
within the web application.
fd6af7
fd6af7
It is recommended that name is prefixed with "ejb/".
fd6af7
fd6af7
Used in: ejb-local-ref, ejb-ref
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<ejb-ref-name>ejb/Payroll</ejb-ref-name>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-ref-type element contains the expected type of the
fd6af7
referenced enterprise bean.
fd6af7
fd6af7
The ejb-ref-type element must be one of the following:
fd6af7
fd6af7
    <ejb-ref-type>Entity</ejb-ref-type>
fd6af7
    <ejb-ref-type>Session</ejb-ref-type>
fd6af7
fd6af7
Used in: ejb-local-ref, ejb-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry element contains the declaration of a web application's
fd6af7
environment entry. The declaration consists of an optional
fd6af7
description, the name of the environment entry, and an optional
fd6af7
value.  If a value is not specified, one must be supplied
fd6af7
during deployment.
fd6af7
-->
fd6af7
fd6af7
env-entry-type)>
fd6af7
fd6af7
fd6af7
The env-entry-name element contains the name of a web application's
fd6af7
environment entry.  The name is a JNDI name relative to the
fd6af7
java:comp/env context.  The name must be unique within a web application.
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<env-entry-name>minAmount</env-entry-name>
fd6af7
fd6af7
Used in: env-entry
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry-type element contains the fully-qualified Java type of
fd6af7
the environment entry value that is expected by the web application's
fd6af7
code.
fd6af7
fd6af7
The following are the legal values of env-entry-type:
fd6af7
fd6af7
    java.lang.Boolean
fd6af7
    java.lang.Byte
fd6af7
    java.lang.Character
fd6af7
    java.lang.String
fd6af7
    java.lang.Short
fd6af7
    java.lang.Integer
fd6af7
    java.lang.Long
fd6af7
    java.lang.Float
fd6af7
    java.lang.Double
fd6af7
fd6af7
Used in: env-entry
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry-value element contains the value of a web application's
fd6af7
environment entry. The value must be a String that is valid for the
fd6af7
constructor of the specified type that takes a single String
fd6af7
parameter, or for java.lang.Character, a single character.
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<env-entry-value>100.00</env-entry-value>
fd6af7
fd6af7
Used in: env-entry
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The error-code contains an HTTP error code, ex: 404
fd6af7
fd6af7
Used in: error-page
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The error-page element contains a mapping between an error code
fd6af7
or exception type to the path of a resource in the web application
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The exception type contains a fully qualified class name of a
fd6af7
Java exception type.
fd6af7
fd6af7
Used in: error-page
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The extension element contains a string describing an
fd6af7
extension. example: "txt"
fd6af7
fd6af7
Used in: mime-mapping
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
Declares a filter in the web application. The filter is mapped to
fd6af7
either a servlet or a URL pattern in the filter-mapping element, using
fd6af7
the filter-name value to reference. Filters can access the
fd6af7
initialization parameters declared in the deployment descriptor at
fd6af7
runtime via the FilterConfig interface.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
filter-class, init-param*)>
fd6af7
fd6af7
fd6af7
The fully qualified classname of the filter.
fd6af7
fd6af7
Used in: filter
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
Declaration of the filter mappings in this web application. The
fd6af7
container uses the filter-mapping declarations to decide which filters
fd6af7
to apply to a request, and in what order. The container matches the
fd6af7
request URI to a Servlet in the normal way. To determine which filters
fd6af7
to apply it matches filter-mapping declarations either on servlet-name,
fd6af7
or on url-pattern for each filter-mapping element, depending on which
fd6af7
style is used. The order in which filters are invoked is the order in
fd6af7
which filter-mapping declarations that match a request URI for a
fd6af7
servlet appear in the list of filter-mapping elements. The filter-name
fd6af7
value must be the value of the <filter-name> sub-elements of one of the
fd6af7
<filter> declarations in the deployment descriptor.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The logical name of the filter. This name is used to map the filter.
fd6af7
Each filter name is unique within the web application.
fd6af7
fd6af7
Used in: filter, filter-mapping
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The form-error-page element defines the location in the web app
fd6af7
where the error page that is displayed when login is not successful
fd6af7
can be found. The path begins with a leading / and is interpreted
fd6af7
relative to the root of the WAR.
fd6af7
fd6af7
Used in: form-login-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The form-login-config element specifies the login and error pages
fd6af7
that should be used in form based login. If form based authentication
fd6af7
is not used, these elements are ignored.
fd6af7
fd6af7
Used in: login-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The form-login-page element defines the location in the web app
fd6af7
where the page that can be used for login can be found. The path
fd6af7
begins with a leading / and is interpreted relative to the root of the WAR.
fd6af7
fd6af7
Used in: form-login-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The home element contains the fully-qualified name of the enterprise
fd6af7
bean's home interface.
fd6af7
fd6af7
Used in: ejb-ref
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<home>com.aardvark.payroll.PayrollHome</home>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The http-method contains an HTTP method (GET | POST |...).
fd6af7
fd6af7
Used in: web-resource-collection
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The icon element contains small-icon and large-icon elements that
fd6af7
specify the file names for small and a large GIF or JPEG icon images
fd6af7
used to represent the parent element in a GUI tool.
fd6af7
fd6af7
Used in: filter, servlet, web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The init-param element contains a name/value pair as an
fd6af7
initialization param of the servlet
fd6af7
fd6af7
Used in: filter, servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The jsp-file element contains the full path to a JSP file within
fd6af7
the web application beginning with a `/'.
fd6af7
fd6af7
Used in: servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The large-icon element contains the name of a file
fd6af7
containing a large (32 x 32) icon image. The file
fd6af7
name is a relative path within the web application's
fd6af7
war file.
fd6af7
fd6af7
The image may be either in the JPEG or GIF format.
fd6af7
The icon can be used by tools.
fd6af7
fd6af7
Used in: icon
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<large-icon>employee-service-icon32x32.jpg</large-icon>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The listener element indicates the deployment properties for a web
fd6af7
application listener bean.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The listener-class element declares a class in the application must be
fd6af7
registered as a web application listener bean. The value is the fully qualified classname of the listener class.
fd6af7
fd6af7
fd6af7
Used in: listener
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The load-on-startup element indicates that this servlet should be
fd6af7
loaded (instantiated and have its init() called) on the start-up
fd6af7
of the web application. The optional contents of
fd6af7
these element must be an integer indicating the order in which
fd6af7
the servlet should be loaded. If the value is a negative integer,
fd6af7
or the element is not present, the container is free to load the
fd6af7
servlet whenever it chooses. If the value is a positive integer
fd6af7
or 0, the container must load and initialize the servlet as the
fd6af7
application is deployed. The container must guarantee that
fd6af7
servlets marked with lower integers are loaded before servlets
fd6af7
marked with higher integers. The container may choose the order
fd6af7
of loading of servlets with the same load-on-start-up value.
fd6af7
fd6af7
Used in: servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The local element contains the fully-qualified name of the
fd6af7
enterprise bean's local interface.
fd6af7
fd6af7
Used in: ejb-local-ref
fd6af7
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The local-home element contains the fully-qualified name of the
fd6af7
enterprise bean's local home interface.
fd6af7
fd6af7
Used in: ejb-local-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The location element contains the location of the resource in the web
fd6af7
application relative to the root of the web application. The value of
fd6af7
the location must have a leading `/'.
fd6af7
fd6af7
Used in: error-page
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The login-config element is used to configure the authentication
fd6af7
method that should be used, the realm name that should be used for
fd6af7
this application, and the attributes that are needed by the form login
fd6af7
mechanism.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The mime-mapping element defines a mapping between an extension
fd6af7
and a mime type.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The mime-type element contains a defined mime type. example:
fd6af7
"text/plain"
fd6af7
fd6af7
Used in: mime-mapping
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The param-name element contains the name of a parameter. Each parameter
fd6af7
name must be unique in the web application.
fd6af7
fd6af7
fd6af7
Used in: context-param, init-param
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The param-value element contains the value of a parameter.
fd6af7
fd6af7
Used in: context-param, init-param
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The realm name element specifies the realm name to use in HTTP
fd6af7
Basic authorization.
fd6af7
fd6af7
Used in: login-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The remote element contains the fully-qualified name of the enterprise
fd6af7
bean's remote interface.
fd6af7
fd6af7
Used in: ejb-ref
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<remote>com.wombat.empl.EmployeeService</remote>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The res-auth element specifies whether the web application code signs
fd6af7
on programmatically to the resource manager, or whether the Container
fd6af7
will sign on to the resource manager on behalf of the web application. In the
fd6af7
latter case, the Container uses information that is supplied by the
fd6af7
Deployer.
fd6af7
fd6af7
The value of this element must be one of the two following:
fd6af7
fd6af7
    <res-auth>Application</res-auth>
fd6af7
    <res-auth>Container</res-auth>
fd6af7
fd6af7
Used in: resource-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The res-ref-name element specifies the name of a resource manager
fd6af7
connection factory reference.  The name is a JNDI name relative to the
fd6af7
java:comp/env context.  The name must be unique within a web application.
fd6af7
fd6af7
Used in: resource-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The res-sharing-scope element specifies whether connections obtained
fd6af7
through the given resource manager connection factory reference can be
fd6af7
shared. The value of this element, if specified, must be one of the
fd6af7
two following:
fd6af7
fd6af7
    <res-sharing-scope>Shareable</res-sharing-scope>
fd6af7
    <res-sharing-scope>Unshareable</res-sharing-scope>
fd6af7
fd6af7
The default value is Shareable.
fd6af7
fd6af7
Used in: resource-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The res-type element specifies the type of the data source. The type
fd6af7
is specified by the fully qualified Java language class or interface
fd6af7
expected to be implemented by the data source.
fd6af7
fd6af7
Used in: resource-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The resource-env-ref element contains a declaration of a web application's
fd6af7
reference to an administered object associated with a resource
fd6af7
in the web application's environment.  It consists of an optional
fd6af7
description, the resource environment reference name, and an
fd6af7
indication of the resource environment reference type expected by
fd6af7
the web application code.
fd6af7
fd6af7
Used in: web-app
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<resource-env-ref>
fd6af7
    <resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
fd6af7
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
fd6af7
</resource-env-ref>
fd6af7
-->
fd6af7
fd6af7
        resource-env-ref-type)>
fd6af7
fd6af7
fd6af7
The resource-env-ref-name element specifies the name of a resource
fd6af7
environment reference; its value is the environment entry name used in
fd6af7
the web application code.  The name is a JNDI name relative to the
fd6af7
java:comp/env context and must be unique within a web application.
fd6af7
fd6af7
Used in: resource-env-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The resource-env-ref-type element specifies the type of a resource
fd6af7
environment reference.  It is the fully qualified name of a Java
fd6af7
language class or interface.
fd6af7
fd6af7
Used in: resource-env-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The resource-ref element contains a declaration of a web application's
fd6af7
reference to an external resource. It consists of an optional
fd6af7
description, the resource manager connection factory reference name,
fd6af7
the indication of the resource manager connection factory type
fd6af7
expected by the web application code, the type of authentication
fd6af7
(Application or Container), and an optional specification of the
fd6af7
shareability of connections obtained from the resource (Shareable or
fd6af7
Unshareable).
fd6af7
fd6af7
Used in: web-app
fd6af7
fd6af7
Example:
fd6af7
fd6af7
    <resource-ref>
fd6af7
    <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
fd6af7
    <res-type>javax.sql.DataSource</res-type>
fd6af7
    <res-auth>Container</res-auth>
fd6af7
    <res-sharing-scope>Shareable</res-sharing-scope>
fd6af7
    </resource-ref>
fd6af7
-->
fd6af7
fd6af7
        res-sharing-scope?)>
fd6af7
fd6af7
fd6af7
The role-link element is a reference to a defined security role. The
fd6af7
role-link element must contain the name of one of the security roles
fd6af7
defined in the security-role elements.
fd6af7
fd6af7
Used in: security-role-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The role-name element contains the name of a security role.
fd6af7
fd6af7
The name must conform to the lexical rules for an NMTOKEN.
fd6af7
fd6af7
Used in: auth-constraint, run-as, security-role, security-role-ref
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The run-as element specifies the run-as identity to be used for the
fd6af7
execution of the web application. It contains an optional description, and
fd6af7
the name of a security role.
fd6af7
fd6af7
Used in: servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The security-constraint element is used to associate security
fd6af7
constraints with one or more web resource collections
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
auth-constraint?, user-data-constraint?)>
fd6af7
fd6af7
fd6af7
The security-role element contains the definition of a security
fd6af7
role. The definition consists of an optional description of the
fd6af7
security role, and the security role name.
fd6af7
fd6af7
Used in: web-app
fd6af7
fd6af7
Example:
fd6af7
fd6af7
    <security-role>
fd6af7
    <description>
fd6af7
        This role includes all employees who are authorized
fd6af7
        to access the employee service application.
fd6af7
    </description>
fd6af7
    <role-name>employee</role-name>
fd6af7
    </security-role>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The security-role-ref element contains the declaration of a security
fd6af7
role reference in the web application's code. The declaration consists
fd6af7
of an optional description, the security role name used in the code,
fd6af7
and an optional link to a security role. If the security role is not
fd6af7
specified, the Deployer must choose an appropriate security role.
fd6af7
fd6af7
The value of the role-name element must be the String used as the
fd6af7
parameter to the EJBContext.isCallerInRole(String roleName) method
fd6af7
or the HttpServletRequest.isUserInRole(String role) method.
fd6af7
fd6af7
Used in: servlet
fd6af7
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The servlet element contains the declarative data of a
fd6af7
servlet. If a jsp-file is specified and the load-on-startup element is
fd6af7
present, then the JSP should be precompiled and loaded.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
(servlet-class|jsp-file), init-param*, load-on-startup?, run-as?, security-role-ref*)>
fd6af7
fd6af7
fd6af7
The servlet-class element contains the fully qualified class name
fd6af7
of the servlet.
fd6af7
fd6af7
Used in: servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The servlet-mapping element defines a mapping between a servlet
fd6af7
and a url pattern
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The servlet-name element contains the canonical name of the
fd6af7
servlet. Each servlet name is unique within the web application.
fd6af7
fd6af7
Used in: filter-mapping, servlet, servlet-mapping
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The session-config element defines the session parameters for
fd6af7
this web application.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The session-timeout element defines the default session timeout
fd6af7
interval for all sessions created in this web application. The
fd6af7
specified timeout must be expressed in a whole number of minutes.
fd6af7
If the timeout is 0 or less, the container ensures the default
fd6af7
behaviour of sessions is never to time out.
fd6af7
fd6af7
Used in: session-config
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The small-icon element contains the name of a file
fd6af7
containing a small (16 x 16) icon image. The file
fd6af7
name is a relative path within the web application's
fd6af7
war file.
fd6af7
fd6af7
The image may be either in the JPEG or GIF format.
fd6af7
The icon can be used by tools.
fd6af7
fd6af7
Used in: icon
fd6af7
fd6af7
Example:
fd6af7
fd6af7
<small-icon>employee-service-icon16x16.jpg</small-icon>
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The taglib element is used to describe a JSP tag library.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
the taglib-location element contains the location (as a resource
fd6af7
relative to the root of the web application) where to find the Tag
fd6af7
Libary Description file for the tag library.
fd6af7
fd6af7
Used in: taglib
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The taglib-uri element describes a URI, relative to the location
fd6af7
of the web.xml document, identifying a Tag Library used in the Web
fd6af7
Application.
fd6af7
fd6af7
Used in: taglib
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The transport-guarantee element specifies that the communication
fd6af7
between client and server should be NONE, INTEGRAL, or
fd6af7
CONFIDENTIAL. NONE means that the application does not require any
fd6af7
transport guarantees. A value of INTEGRAL means that the application
fd6af7
requires that the data sent between the client and server be sent in
fd6af7
such a way that it can't be changed in transit. CONFIDENTIAL means
fd6af7
that the application requires that the data be transmitted in a
fd6af7
fashion that prevents other entities from observing the contents of
fd6af7
the transmission. In most cases, the presence of the INTEGRAL or
fd6af7
CONFIDENTIAL flag will indicate that the use of SSL is required.
fd6af7
fd6af7
Used in: user-data-constraint
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The url-pattern element contains the url pattern of the mapping. Must
fd6af7
follow the rules specified in Section 11.2 of the Servlet API
fd6af7
Specification.
fd6af7
fd6af7
Used in: filter-mapping, servlet-mapping, web-resource-collection
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The user-data-constraint element is used to indicate how data
fd6af7
communicated between the client and container should be protected.
fd6af7
fd6af7
Used in: security-constraint
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The web-resource-collection element is used to identify a subset
fd6af7
of the resources and HTTP methods on those resources within a web
fd6af7
application to which a security constraint applies. If no HTTP methods
fd6af7
are specified, then the security constraint applies to all HTTP
fd6af7
methods.
fd6af7
fd6af7
Used in: security-constraint
fd6af7
-->
fd6af7
fd6af7
url-pattern*, http-method*)>
fd6af7
fd6af7
fd6af7
The web-resource-name contains the name of this web resource
fd6af7
collection.
fd6af7
fd6af7
Used in: web-resource-collection
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The welcome-file element contains file name to use as a default
fd6af7
welcome file, such as index.html
fd6af7
fd6af7
Used in: welcome-file-list
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The welcome-file-list contains an ordered list of welcome files
fd6af7
elements.
fd6af7
fd6af7
Used in: web-app
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
The ID mechanism is to allow tools that produce additional deployment
fd6af7
information (i.e., information beyond the standard deployment
fd6af7
descriptor information) to store the non-standard information in a
fd6af7
separate file, and easily refer from these tool-specific files to the
fd6af7
information in the standard deployment descriptor.
fd6af7
fd6af7
Tools are not allowed to add the non-standard information into the
fd6af7
standard deployment descriptor.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7