⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web-app_2_4.xsd

📁 在tomcat下运行的投票系统
💻 XSD
📖 第 1 页 / 共 3 页
字号:
	The security-constraintType is used to associate
	security constraints with one or more web resource
	collections

	Used in: web-app

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="display-name"
		   type="j2ee:display-nameType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="web-resource-collection"
		   type="j2ee:web-resource-collectionType"
		   maxOccurs="unbounded"/>
      <xsd:element name="auth-constraint"
		   type="j2ee:auth-constraintType"
		   minOccurs="0"/>
      <xsd:element name="user-data-constraint"
		   type="j2ee:user-data-constraintType"
		   minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="servlet-mappingType">
    <xsd:annotation>
      <xsd:documentation>

	The servlet-mappingType defines a mapping between a
	servlet and a url pattern.

	Used in: web-app

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="servlet-name"
		   type="j2ee:servlet-nameType"/>
      <xsd:element name="url-pattern"
		   type="j2ee:url-patternType"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="servlet-nameType">
    <xsd:annotation>
      <xsd:documentation>

	The servlet-name element contains the canonical name of the
	servlet. Each servlet name is unique within the web
	application.

      </xsd:documentation>
    </xsd:annotation>

    <xsd:simpleContent>
      <xsd:extension base="j2ee:nonEmptyStringType"/>
    </xsd:simpleContent>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="servletType">
    <xsd:annotation>
      <xsd:documentation>

	The servletType is used to declare a servlet.
	It contains the declarative data of a
	servlet. If a jsp-file is specified and the load-on-startup
	element is present, then the JSP should be precompiled and
	loaded.

	Used in: web-app

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:group ref="j2ee:descriptionGroup"/>
      <xsd:element name="servlet-name"
		   type="j2ee:servlet-nameType"/>
      <xsd:choice>
	<xsd:element name="servlet-class"
		     type="j2ee:fully-qualified-classType">
	  <xsd:annotation>
	    <xsd:documentation>

	      The servlet-class element contains the fully
	      qualified class name of the servlet.

	    </xsd:documentation>
	  </xsd:annotation>
	</xsd:element>

	<xsd:element name="jsp-file"
		     type="j2ee:jsp-fileType"/>

      </xsd:choice>

      <xsd:element name="init-param"
		   type="j2ee:param-valueType"
		   minOccurs="0" maxOccurs="unbounded"/>
      <xsd:element name="load-on-startup"
		   type="j2ee:xsdIntegerType"
		   minOccurs="0">
	<xsd:annotation>
	  <xsd:documentation>

	    The load-on-startup element indicates that this
	    servlet should be loaded (instantiated and have
	    its init() called) on the startup of the web
	    application. The optional contents of these
	    element must be an integer indicating the order in
	    which the servlet should be loaded. If the value
	    is a negative integer, or the element is not
	    present, the container is free to load the servlet
	    whenever it chooses. If the value is a positive
	    integer or 0, the container must load and
	    initialize the servlet as the application is
	    deployed. The container must guarantee that
	    servlets marked with lower integers are loaded
	    before servlets marked with higher integers. The
	    container may choose the order of loading of
	    servlets with the same load-on-start-up value.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
      <xsd:element name="run-as"
		   type="j2ee:run-asType"
		   minOccurs="0"/>
      <xsd:element name="security-role-ref"
		   type="j2ee:security-role-refType"
		   minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="session-configType">
    <xsd:annotation>
      <xsd:documentation>

	The session-configType defines the session parameters
	for this web application.

	Used in: web-app

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="session-timeout"
		   type="j2ee:xsdIntegerType"
		   minOccurs="0">
	<xsd:annotation>
	  <xsd:documentation>

	    The session-timeout element defines the default
	    session timeout interval for all sessions created
	    in this web application. The specified timeout
	    must be expressed in a whole number of minutes.
	    If the timeout is 0 or less, the container ensures
	    the default behaviour of sessions is never to time
	    out. If this element is not specified, the container
	    must set its default timeout period.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="transport-guaranteeType">
    <xsd:annotation>
      <xsd:documentation>

	The transport-guaranteeType specifies that the communication
	between client and server should be NONE, INTEGRAL, or
	CONFIDENTIAL. NONE means that the application does not
	require any transport guarantees. A value of INTEGRAL means
	that the application requires that the data sent between the
	client and server be sent in such a way that it can't be
	changed in transit. CONFIDENTIAL means that the application
	requires that the data be transmitted in a fashion that
	prevents other entities from observing the contents of the
	transmission. In most cases, the presence of the INTEGRAL or
	CONFIDENTIAL flag will indicate that the use of SSL is
	required.

	Used in: user-data-constraint

      </xsd:documentation>
    </xsd:annotation>

    <xsd:simpleContent>
      <xsd:restriction base="j2ee:string">
	<xsd:enumeration value="NONE"/>
	<xsd:enumeration value="INTEGRAL"/>
	<xsd:enumeration value="CONFIDENTIAL"/>
      </xsd:restriction>
    </xsd:simpleContent>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="user-data-constraintType">
    <xsd:annotation>
      <xsd:documentation>

	The user-data-constraintType is used to indicate how
	data communicated between the client and container should be
	protected.

	Used in: security-constraint

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="description"
		   type="j2ee:descriptionType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="transport-guarantee"
		   type="j2ee:transport-guaranteeType"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="war-pathType">
    <xsd:annotation>
      <xsd:documentation>

	The elements that use this type designate a path starting
	with a "/" and interpreted relative to the root of a WAR
	file.

      </xsd:documentation>
    </xsd:annotation>
    <xsd:simpleContent>
      <xsd:restriction base="j2ee:string">
	<xsd:pattern value="/.*"/>
      </xsd:restriction>
    </xsd:simpleContent>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:simpleType name="web-app-versionType">
    <xsd:annotation>
      <xsd:documentation>

	This type contains the recognized versions of
	web-application supported. It is used to designate the
	version of the web application.

      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:token">
      <xsd:enumeration value="2.4"/>
    </xsd:restriction>
  </xsd:simpleType>

<!-- **************************************************** -->

  <xsd:complexType name="web-appType">

    <xsd:choice minOccurs="0" maxOccurs="unbounded">
      <xsd:group ref="j2ee:descriptionGroup"/>
      <xsd:element name="distributable"
		   type="j2ee:emptyType"/>
      <xsd:element name="context-param"
		   type="j2ee:param-valueType">

	<xsd:annotation>
	  <xsd:documentation>

	    The context-param element contains the declaration
	    of a web application's servlet context
	    initialization parameters.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>

      <xsd:element name="filter"
		   type="j2ee:filterType"/>
      <xsd:element name="filter-mapping"
		   type="j2ee:filter-mappingType"/>
      <xsd:element name="listener"
		   type="j2ee:listenerType"/>
      <xsd:element name="servlet"
		   type="j2ee:servletType"/>
      <xsd:element name="servlet-mapping"
		   type="j2ee:servlet-mappingType"/>
      <xsd:element name="session-config"
		   type="j2ee:session-configType"/>
      <xsd:element name="mime-mapping"
		   type="j2ee:mime-mappingType"/>
      <xsd:element name="welcome-file-list"
		   type="j2ee:welcome-file-listType"/>
      <xsd:element name="error-page"
		   type="j2ee:error-pageType"/>
      <xsd:element name="jsp-config"
		   type="j2ee:jsp-configType"/>
      <xsd:element name="security-constraint"
		   type="j2ee:security-constraintType"/>
      <xsd:element name="login-config"
		   type="j2ee:login-configType"/>
      <xsd:element name="security-role"
		   type="j2ee:security-roleType"/>
      <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>
      <xsd:element name="message-destination"
		   type="j2ee:message-destinationType"/>
      <xsd:element name="locale-encoding-mapping-list"
		   type="j2ee:locale-encoding-mapping-listType"/>
    </xsd:choice>

    <xsd:attribute name="version"
		   type="j2ee:web-app-versionType"
		   use="required"/>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="web-resource-collectionType">
    <xsd:annotation>
      <xsd:documentation>

	The web-resource-collectionType is used to identify a subset
	of the resources and HTTP methods on those resources within
	a web application to which a security constraint applies. If
	no HTTP methods are specified, then the security constraint
	applies to all HTTP methods.

	Used in: security-constraint

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="web-resource-name"
		   type="j2ee:string">
	<xsd:annotation>
	  <xsd:documentation>

	    The web-resource-name contains the name of this web
	    resource collection.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
      <xsd:element name="description"
		   type="j2ee:descriptionType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="url-pattern"
		   type="j2ee:url-patternType"
		   maxOccurs="unbounded"/>
      <xsd:element name="http-method"
		   type="j2ee:http-methodType"
		   minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="welcome-file-listType">
    <xsd:annotation>
      <xsd:documentation>

	The welcome-file-list contains an ordered list of welcome
	files elements.

	Used in: web-app

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="welcome-file"
		   type="xsd:string"
		   maxOccurs="unbounded">
	<xsd:annotation>
	  <xsd:documentation>

	    The welcome-file element contains file name to use
	    as a default welcome file, such as index.html

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

</xsd:schema>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -