📄 web-app_2_4.xsd
字号:
The error-pageType contains a mapping between an error code or exception type to the path of a resource in the web application. Used in: web-app </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:choice> <xsd:element name="error-code" type="j2ee:error-codeType"/> <xsd:element name="exception-type" type="j2ee:fully-qualified-classType"> <xsd:annotation> <xsd:documentation> The exception-type contains a fully qualified class name of a Java exception type. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:choice> <xsd:element name="location" type="j2ee:war-pathType"> <xsd:annotation> <xsd:documentation> The location element contains the location of the resource in the web application relative to the root of the web application. The value of the location must have a leading `/'. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="filter-mappingType"> <xsd:annotation> <xsd:documentation> Declaration of the filter mappings in this web application is done by using filter-mappingType. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the filter-name sub-elements of one of the filter declarations in the deployment descriptor. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="filter-name" type="j2ee:filter-nameType"/> <xsd:choice> <xsd:element name="url-pattern" type="j2ee:url-patternType"/> <xsd:element name="servlet-name" type="j2ee:servlet-nameType"/> </xsd:choice> <xsd:element name="dispatcher" type="j2ee:dispatcherType" minOccurs="0" maxOccurs="4"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="filter-nameType"> <xsd:annotation> <xsd:documentation> The logical name of the filter is declare by using filter-nameType. This name is used to map the filter. Each filter name is unique within the web application. Used in: filter, filter-mapping </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:extension base="j2ee:nonEmptyStringType"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="filterType"> <xsd:annotation> <xsd:documentation> The filterType is used to declare a filter in the web application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface. Used in: web-app </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:group ref="j2ee:descriptionGroup"/> <xsd:element name="filter-name" type="j2ee:filter-nameType"/> <xsd:element name="filter-class" type="j2ee:fully-qualified-classType"> <xsd:annotation> <xsd:documentation> The fully qualified classname of the filter. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="init-param" type="j2ee:param-valueType" minOccurs="0" maxOccurs="unbounded"> <xsd:annotation> <xsd:documentation> The init-param element contains a name/value pair as an initialization param of a servlet filter </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="form-login-configType"> <xsd:annotation> <xsd:documentation> The form-login-configType specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored. Used in: login-config </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="form-login-page" type="j2ee:war-pathType"> <xsd:annotation> <xsd:documentation> The form-login-page element defines the location in the web app where the page that can be used for login can be found. The path begins with a leading / and is interpreted relative to the root of the WAR. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="form-error-page" type="j2ee:war-pathType"> <xsd:annotation> <xsd:documentation> The form-error-page element defines the location in the web app where the error page that is displayed when login is not successful can be found. The path begins with a leading / and is interpreted relative to the root of the WAR. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="http-methodType"> <xsd:annotation> <xsd:documentation> The http-method contains an HTTP method recognized by the web-app, for example GET, POST, ... </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="GET"/> <xsd:enumeration value="POST"/> <xsd:enumeration value="PUT"/> <xsd:enumeration value="DELETE"/> <xsd:enumeration value="HEAD"/> <xsd:enumeration value="OPTIONS"/> <xsd:enumeration value="TRACE"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="locale-encoding-mapping-listType"> <xsd:annotation> <xsd:documentation> The locale-encoding-mapping-list contains one or more locale-encoding-mapping(s). </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="locale-encoding-mapping" type="j2ee:locale-encoding-mappingType" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="locale-encoding-mappingType"> <xsd:annotation> <xsd:documentation> The locale-encoding-mapping contains locale name and encoding name. The locale name must be either "Language-code", such as "ja", defined by ISO-639 or "Language-code_Country-code", such as "ja_JP". "Country code" is defined by ISO-3166. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="locale" type="j2ee:localeType"/> <xsd:element name="encoding" type="j2ee:encodingType"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:simpleType name="localeType"> <xsd:annotation> <xsd:documentation> The localeType defines valid locale defined by ISO-639-1 and ISO-3166. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:pattern value="[a-z]{2}(_|-)?([\p{L}\-\p{Nd}]{2})?"/> </xsd:restriction> </xsd:simpleType><!-- **************************************************** --> <xsd:complexType name="login-configType"> <xsd:annotation> <xsd:documentation> The login-configType is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login mechanism. Used in: web-app </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="auth-method" type="j2ee:auth-methodType" minOccurs="0"/> <xsd:element name="realm-name" type="j2ee:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> The realm name element specifies the realm name to use in HTTP Basic authorization. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="form-login-config" type="j2ee:form-login-configType" minOccurs="0"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="mime-mappingType"> <xsd:annotation> <xsd:documentation> The mime-mappingType defines a mapping between an extension and a mime type. Used in: web-app </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:annotation> <xsd:documentation> The extension element contains a string describing an extension. example: "txt" </xsd:documentation> </xsd:annotation> <xsd:element name="extension" type="j2ee:string"/> <xsd:element name="mime-type" type="j2ee:mime-typeType"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="mime-typeType"> <xsd:annotation> <xsd:documentation> The mime-typeType is used to indicate a defined mime type. Example: "text/plain" Used in: mime-mapping </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:pattern value="[\p{L}\-\p{Nd}]+/[\p{L}\-\p{Nd}\.]+"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="nonEmptyStringType"> <xsd:annotation> <xsd:documentation> This type defines a string which contains at least one character. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:minLength value="1"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="security-constraintType"> <xsd:annotation> <xsd:documentation> The security-constraintType is used to associate security constraints with one or more web resource collections Used in: web-app
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -