jboss-app_7_0.xsd 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2012, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns="http://www.jboss.com/xml/ns/javaee"
  24. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  25. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  26. xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
  27. targetNamespace="http://www.jboss.com/xml/ns/javaee"
  28. version="7.0"
  29. elementFormDefault="qualified">
  30. <xs:annotation>
  31. <xs:documentation>
  32. <![CDATA[
  33. This is the XML Schema for the JBoss AS7 EAR application deployment descriptor.
  34. The deployment descriptor must be named "jboss-app.xml" and placed in the
  35. .ear/META-INF folder. All the descriptors must indicate
  36. the JBoss schema by using the Java EE namespace:
  37. http://www.jboss.com/xml/ns/javaee
  38. and by indicating the version of the schema by
  39. using the version attribute as shown below:
  40. <jboss-app xmlns="http://www.jboss.com/xml/ns/javaee"
  41. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  42. version="7.0">
  43. ...
  44. </jboss-app>
  45. The instance documents may indicate the published version of
  46. the schema using the xsi:schemaLocation attribute for the
  47. Java EE namespace with the following location:
  48. http://www.jboss.org/j2ee/schema/jboss-app_7_0.xsd
  49. ]]>
  50. </xs:documentation>
  51. </xs:annotation>
  52. <!-- Import the Java EE6 xsd -->
  53. <xs:import namespace="http://java.sun.com/xml/ns/javaee"
  54. schemaLocation="application_6.xsd"/>
  55. <!-- Include the common JBoss EE elements -->
  56. <xs:include schemaLocation="jboss-common_6_0.xsd"/>
  57. <xs:element name="jboss-app" type="jboss-appType"/>
  58. <xs:complexType name="jboss-appType">
  59. <xs:annotation>
  60. <xs:documentation>
  61. Root element for JBoss specific configurations in a .ear
  62. </xs:documentation>
  63. </xs:annotation>
  64. <xs:complexContent>
  65. <xs:extension base="javaee:applicationType">
  66. <xs:sequence>
  67. <xs:element name="distinct-name" type="xs:string" minOccurs="0" maxOccurs="1">
  68. <xs:annotation>
  69. <xs:documentation>
  70. The distinct-name for this application.
  71. </xs:documentation>
  72. </xs:annotation>
  73. </xs:element>
  74. <xs:element name="security-domain" type="xs:string" minOccurs="0" maxOccurs="1">
  75. <xs:annotation>
  76. <xs:documentation>
  77. The security domain application for this application.
  78. </xs:documentation>
  79. </xs:annotation>
  80. </xs:element>
  81. <xs:element name="unauthenticated-principal" type="xs:string" minOccurs="0" maxOccurs="1">
  82. <xs:annotation>
  83. <xs:documentation>
  84. The principal that will be used for unauthenticated requests in this application
  85. </xs:documentation>
  86. </xs:annotation>
  87. </xs:element>
  88. <xs:element name="library-directory" type="xs:string" minOccurs="0" maxOccurs="1"/>
  89. <xs:element name="security-role" minOccurs="0" maxOccurs="unbounded"
  90. type="jboss:security-roleType"/>
  91. <xs:element name="module" minOccurs="0" maxOccurs="unbounded" type="moduleType"/>
  92. </xs:sequence>
  93. </xs:extension>
  94. </xs:complexContent>
  95. </xs:complexType>
  96. <xs:complexType name="moduleType">
  97. <xs:sequence>
  98. <xs:element name="service" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
  99. <xs:element name="har" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
  100. <xs:element name="web" type="javaee:webType" minOccurs="0" maxOccurs="unbounded"/>
  101. </xs:sequence>
  102. </xs:complexType>
  103. </xs:schema>