web.dtd
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:16k
源码类别:

SNMP编程

开发平台:

C/C++

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- The web-app element is the root of the deployment descriptor for
  3. a web application -->
  4. <!ELEMENT web-app (icon?, display-name?, description?, distributable?,
  5. context-param*, servlet*, servlet-mapping*, session-config?,
  6. mime-mapping*, welcome-file-list?, error-page*, taglib*,
  7. resource-ref*, security-constraint*, login-config?, security-role*,
  8. env-entry*, ejb-ref*)>
  9. <!-- The icon element contains a small-icon and a large-icon element
  10. which specify the location within the web application for a small and
  11. large image used to represent the web application in a GUI tool. At a
  12. minimum, tools must accept GIF and JPEG format images. -->
  13. <!ELEMENT icon (small-icon?, large-icon?)>
  14. <!-- The small-icon element contains the location within the web
  15. application of a file containing a small (16x16 pixel) icon image. -->
  16. <!ELEMENT small-icon (#PCDATA)>
  17. <!-- The large-icon element contains the location within the web
  18. application of a file containing a large (32x32 pixel) icon image.
  19. -->
  20. <!ELEMENT large-icon (#PCDATA)>
  21. <!-- The display-name element contains a short name that is intended
  22. to be displayed by GUI tools -->
  23. <!ELEMENT display-name (#PCDATA)>
  24. <!-- The description element is used to provide descriptive text about
  25. the parent element. -->
  26. <!ELEMENT description (#PCDATA)>
  27. <!-- The distributable element, by its presence in a web application
  28. deployment descriptor, indicates that this web application is
  29. programmed appropriately to be deployed into a distributed servlet
  30. container -->
  31. <!ELEMENT distributable EMPTY>
  32. <!-- The context-param element contains the declaration of a web
  33. application's servlet context initialization parameters. -->
  34. <!ELEMENT context-param (param-name, param-value, description?)>
  35. <!-- The param-name element contains the name of a parameter. -->
  36. <!ELEMENT param-name (#PCDATA)>
  37. <!-- The param-value element contains the value of a parameter. -->
  38. <!ELEMENT param-value (#PCDATA)>
  39. <!-- The servlet element contains the declarative data of a
  40. servlet. If a jsp-file is specified and the load-on-startup element is
  41. present, then the JSP should be precompiled and loaded. -->
  42. <!ELEMENT servlet (icon?, servlet-name, display-name?, description?, (servlet-class|jsp-file), init-param*, load-on-startup?, security-role-ref*)>
  43. <!-- The servlet-name element contains the canonical name of the
  44. servlet. -->
  45. <!ELEMENT servlet-name (#PCDATA)>
  46. <!-- The servlet-class element contains the fully qualified class name
  47. of the servlet. -->
  48. <!ELEMENT servlet-class (#PCDATA)>
  49. <!-- The jsp-file element contains the full path to a JSP file within
  50. the web application. -->
  51. <!ELEMENT jsp-file (#PCDATA)>
  52. <!-- The init-param element contains a name/value pair as an
  53. initialization param of the servlet -->
  54. <!ELEMENT init-param (param-name, param-value, description?)>
  55. <!-- The load-on-startup element indicates that this servlet should be
  56. loaded on the startup of the web application. The optional contents of
  57. these element must be a positive integer indicating the order in which
  58. the servlet should be loaded. Lower integers are loaded before higher
  59. integers. If no value is specified, or if the value specified is not a
  60. positive integer, the container is free to load it at any time in the
  61. startup sequence. -->
  62. <!ELEMENT load-on-startup (#PCDATA)>
  63. <!-- The servlet-mapping element defines a mapping between a servlet
  64. and a url pattern -->
  65. <!ELEMENT servlet-mapping (servlet-name, url-pattern)>
  66. <!-- The url-pattern element contains the url pattern of the
  67. mapping. Must follow the rules specified in Section 10 of the Servlet
  68. API Specification. -->
  69. <!ELEMENT url-pattern (#PCDATA)>
  70. <!-- The session-config element defines the session parameters for
  71. this web application. -->
  72. <!ELEMENT session-config (session-timeout?)>
  73. <!-- The session-timeout element defines the default session timeout
  74. interval for all sessions created in this web application. The
  75. specified timeout must be expressed in a whole number of minutes. -->
  76. <!ELEMENT session-timeout (#PCDATA)>
  77. <!-- The mime-mapping element defines a mapping between an extension
  78. and a mime type. -->
  79. <!ELEMENT mime-mapping (extension, mime-type)>
  80. <!-- The extension element contains a string describing an
  81. extension. example: txt -->
  82. <!ELEMENT extension (#PCDATA)>
  83. <!-- The mime-type element contains a defined mime type. example:
  84. text/plain -->
  85. <!ELEMENT mime-type (#PCDATA)>
  86. <!-- The welcome-file-list contains an ordered list of welcome files
  87. elements. -->
  88. <!ELEMENT welcome-file-list (welcome-file+)>
  89. <!-- The welcome-file element contains file name to use as a default
  90. welcome file, such as index.html -->
  91. <!ELEMENT welcome-file (#PCDATA)>
  92. <!-- The taglib element is used to describe a JSP tag library. -->
  93. <!ELEMENT taglib (taglib-uri, taglib-location)>
  94. <!-- The taglib-uri element describes a URI, relative to the location
  95. of the web.xml document, identifying a Tag Library used in the Web
  96. Application. -->
  97. <!ELEMENT taglib-uri (#PCDATA)>
  98. <!-- the taglib-location element contains the location (as a resource
  99. relative to the root of the web application) where to find the Tag
  100. Libary Description file for the tag library. -->
  101. <!ELEMENT taglib-location (#PCDATA)>
  102. <!-- The error-page element contains a mapping between an error code
  103. or exception type to the path of a resource in the web application -->
  104. <!ELEMENT error-page ((error-code | exception-type), location)>
  105. <!-- The error-code contains an HTTP error code, ex: 404 -->
  106. <!ELEMENT error-code (#PCDATA)>
  107. <!-- The exception type contains a fully qualified class name of a
  108. Java exception type. -->
  109. <!ELEMENT exception-type (#PCDATA)>
  110. <!-- The location element contains the location of the resource in the
  111. web application -->
  112. <!ELEMENT location (#PCDATA)>
  113. <!-- The resource-ref element contains a declaration of a Web
  114. Application's reference to an external resource. -->
  115. <!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth)>
  116. <!-- The res-ref-name element specifies the name of the resource
  117. factory reference name. -->
  118. <!ELEMENT res-ref-name (#PCDATA)>
  119. <!-- The res-type element specifies the (Java class) type of the data
  120. source. -->
  121. <!ELEMENT res-type (#PCDATA)>
  122. <!-- The res-auth element indicates whether the application component
  123. code performs resource signon programmatically or whether the
  124. container signs onto the resource based on the principle mapping
  125. information supplied by the deployer. Must be CONTAINER or SERVLET -->
  126. <!ELEMENT res-auth (#PCDATA)>
  127. <!-- The security-constraint element is used to associate security
  128. constraints with one or more web resource collections -->
  129. <!ELEMENT security-constraint (web-resource-collection+,
  130. auth-constraint?, user-data-constraint?)>
  131. <!-- The web-resource-collection element is used to identify a subset
  132. of the resources and HTTP methods on those resources within a web
  133. application to which a security constraint applies. If no HTTP methods
  134. are specified, then the security constraint applies to all HTTP
  135. methods. -->
  136. <!ELEMENT web-resource-collection (web-resource-name, description?,
  137. url-pattern*, http-method*)>
  138. <!-- The web-resource-name contains the name of this web resource
  139. collection -->
  140. <!ELEMENT web-resource-name (#PCDATA)>
  141. <!-- The http-method contains an HTTP method (GET | POST |...) -->
  142. <!ELEMENT http-method (#PCDATA)>
  143. <!-- The user-data-constraint element is used to indicate how data
  144. communicated between the client and container should be protected -->
  145. <!ELEMENT user-data-constraint (description?, transport-guarantee)>
  146. <!-- The transport-guarantee element specifies that the communication
  147. between client and server should be NONE, INTEGRAL, or
  148. CONFIDENTIAL. NONE means that the application does not require any
  149. transport guarantees. A value of INTEGRAL means that the application
  150. requires that the data sent between the client and server be sent in
  151. such a way that it can't be changed in transit. CONFIDENTIAL means
  152. that the application requires that the data be transmitted in a
  153. fashion that prevents other entities from observing the contents of
  154. the transmission. In most cases, the presence of the INTEGRAL or
  155. CONFIDENTIAL flag will indicate that the use of SSL is required. -->
  156. <!ELEMENT transport-guarantee (#PCDATA)>
  157. <!-- The auth-constraint element indicates the user roles that should
  158. be permitted access to this resource collection. The role used here
  159. must appear in a security-role-ref element. -->
  160. <!ELEMENT auth-constraint (description?, role-name*)>
  161. <!-- The role-name element contains the name of a security role. -->
  162. <!ELEMENT role-name (#PCDATA)>
  163. <!-- The login-config element is used to configure the authentication
  164. method that should be used, the realm name that should be used for
  165. this application, and the attributes that are needed by the form login
  166. mechanism. -->
  167. <!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
  168. <!-- The realm name element specifies the realm name to use in HTTP
  169. Basic authorization -->
  170. <!ELEMENT realm-name (#PCDATA)>
  171. <!-- The form-login-config element specifies the login and error pages
  172. that should be used in form based login. If form based authentication
  173. is not used, these elements are ignored. -->
  174. <!ELEMENT form-login-config (form-login-page, form-error-page)>
  175. <!-- The form-login-page element defines the location in the web app
  176. where the page that can be used for login can be found -->
  177. <!ELEMENT form-login-page (#PCDATA)>
  178. <!-- The form-error-page element defines the location in the web app
  179. where the error page that is displayed when login is not successful
  180. can be found -->
  181. <!ELEMENT form-error-page (#PCDATA)>
  182. <!-- The auth-method element is used to configure the authentication
  183. mechanism for the web application. As a prerequisite to gaining access
  184. to any web resources which are protected by an authorization
  185. constraint, a user must have authenticated using the configured
  186. mechanism. Legal values for this element are "BASIC", "DIGEST",
  187. "FORM", or "CLIENT-CERT". -->
  188. <!ELEMENT auth-method (#PCDATA)>
  189. <!-- The security-role element contains the declaration of a security
  190. role which is used in the security-constraints placed on the web
  191. application. -->
  192. <!ELEMENT security-role (description?, role-name)>
  193. <!-- The role-name element contains the name of a role. This element
  194. must contain a non-empty string. -->
  195. <!ELEMENT security-role-ref (description?, role-name, role-link)> 
  196. <!-- The role-link element is used to link a security role reference
  197. to a defined security role. The role-link element must contain the
  198. name of one of the security roles defined in the security-role
  199. elements. -->
  200. <!ELEMENT role-link (#PCDATA)>
  201. <!-- The env-entry element contains the declaration of an
  202. application's environment entry. This element is required to be
  203. honored on in J2EE compliant servlet containers. -->
  204. <!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
  205. env-entry-type)>
  206. <!-- The env-entry-name contains the name of an application's
  207. environment entry -->
  208. <!ELEMENT env-entry-name (#PCDATA)>
  209. <!-- The env-entry-value element contains the value of an
  210. application's environment entry -->
  211. <!ELEMENT env-entry-value (#PCDATA)>
  212. <!-- The env-entry-type element contains the fully qualified Java type
  213. of the environment entry value that is expected by the application
  214. code. The following are the legal values of env-entry-type:
  215. java.lang.Boolean, java.lang.String, java.lang.Integer,
  216. java.lang.Double, java.lang.Float. -->
  217. <!ELEMENT env-entry-type (#PCDATA)>
  218. <!-- The ejb-ref element is used to declare a reference to an
  219. enterprise bean.  -->
  220. <!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type, home, remote, ejb-link?)>
  221. <!-- The ejb-ref-name element contains the name of an EJB
  222. reference. This is the JNDI name that the servlet code uses to get a
  223. reference to the enterprise bean. -->
  224. <!ELEMENT ejb-ref-name (#PCDATA)>
  225. <!-- The ejb-ref-type element contains the expected java class type of
  226. the referenced EJB. -->
  227. <!ELEMENT ejb-ref-type (#PCDATA)>
  228. <!-- The ejb-home element contains the fully qualified name of the
  229. EJB's home interface -->
  230. <!ELEMENT home (#PCDATA)>
  231. <!-- The ejb-remote element contains the fully qualified name of the
  232. EJB's remote interface -->
  233. <!ELEMENT remote (#PCDATA)>
  234. <!-- The ejb-link element is used in the ejb-ref element to specify
  235. that an EJB reference is linked to an EJB in an encompassing Java2
  236. Enterprise Edition (J2EE) application package. The value of the
  237. ejb-link element must be the ejb-name of and EJB in the J2EE
  238. application package. -->
  239. <!ELEMENT ejb-link (#PCDATA)>
  240. <!-- The ID mechanism is to allow tools to easily make tool-specific
  241. references to the elements of the deployment descriptor. This allows
  242. tools that produce additional deployment information (i.e information
  243. beyond the standard deployment descriptor information) to store the
  244. non-standard information in a separate file, and easily refer from
  245. these tools-specific files to the information in the standard web-app
  246. deployment descriptor. -->
  247. <!ATTLIST web-app id ID #IMPLIED>
  248. <!ATTLIST icon id ID #IMPLIED>
  249. <!ATTLIST small-icon id ID #IMPLIED>
  250. <!ATTLIST large-icon id ID #IMPLIED>
  251. <!ATTLIST display-name id ID #IMPLIED>
  252. <!ATTLIST description id ID #IMPLIED>
  253. <!ATTLIST distributable id ID #IMPLIED>
  254. <!ATTLIST context-param id ID #IMPLIED>
  255. <!ATTLIST param-name id ID #IMPLIED>
  256. <!ATTLIST param-value id ID #IMPLIED>
  257. <!ATTLIST servlet id ID #IMPLIED>
  258. <!ATTLIST servlet-name id ID #IMPLIED>
  259. <!ATTLIST servlet-class id ID #IMPLIED>
  260. <!ATTLIST jsp-file id ID #IMPLIED>
  261. <!ATTLIST init-param id ID #IMPLIED>
  262. <!ATTLIST load-on-startup id ID #IMPLIED>
  263. <!ATTLIST servlet-mapping id ID #IMPLIED>
  264. <!ATTLIST url-pattern id ID #IMPLIED>
  265. <!ATTLIST session-config id ID #IMPLIED>
  266. <!ATTLIST session-timeout id ID #IMPLIED>
  267. <!ATTLIST mime-mapping id ID #IMPLIED>
  268. <!ATTLIST extension id ID #IMPLIED>
  269. <!ATTLIST mime-type id ID #IMPLIED>
  270. <!ATTLIST welcome-file-list id ID #IMPLIED>
  271. <!ATTLIST welcome-file id ID #IMPLIED>
  272. <!ATTLIST error-page id ID #IMPLIED>
  273. <!ATTLIST error-code id ID #IMPLIED>
  274. <!ATTLIST exception-type id ID #IMPLIED>
  275. <!ATTLIST location id ID #IMPLIED>
  276. <!ATTLIST resource-ref id ID #IMPLIED>
  277. <!ATTLIST res-ref-name id ID #IMPLIED>
  278. <!ATTLIST res-type id ID #IMPLIED>
  279. <!ATTLIST res-auth id ID #IMPLIED>
  280. <!ATTLIST security-constraint id ID #IMPLIED>
  281. <!ATTLIST web-resource-collection id ID #IMPLIED>
  282. <!ATTLIST web-resource-name id ID #IMPLIED>
  283. <!ATTLIST http-method id ID #IMPLIED>
  284. <!ATTLIST user-data-constraint id ID #IMPLIED>
  285. <!ATTLIST transport-guarantee id ID #IMPLIED>
  286. <!ATTLIST auth-constraint id ID #IMPLIED>
  287. <!ATTLIST role-name id ID #IMPLIED>
  288. <!ATTLIST auth-method id ID #IMPLIED>
  289. <!ATTLIST basic-auth id ID #IMPLIED>
  290. <!ATTLIST form-auth id ID #IMPLIED>
  291. <!ATTLIST form-login-page id ID #IMPLIED>
  292. <!ATTLIST form-error-page id ID #IMPLIED>
  293. <!ATTLIST form-login-config id ID #IMPLIED>
  294. <!ATTLIST realm-name id ID #IMPLIED>
  295. <!ATTLIST login-config id ID #IMPLIED>
  296. <!ATTLIST security-role id ID #IMPLIED>
  297. <!ATTLIST security-role-ref id ID #IMPLIED>
  298. <!ATTLIST role-link id ID #IMPLIED>
  299. <!ATTLIST env-entry id ID #IMPLIED>
  300. <!ATTLIST env-entry-name id ID #IMPLIED>
  301. <!ATTLIST env-entry-value id ID #IMPLIED>
  302. <!ATTLIST env-entry-type id ID #IMPLIED>
  303. <!ATTLIST mutual-auth id ID #IMPLIED>
  304. <!ATTLIST ejb-ref id ID #IMPLIED>
  305. <!ATTLIST ejb-ref-name id ID #IMPLIED>
  306. <!ATTLIST ejb-ref-type id ID #IMPLIED>
  307. <!ATTLIST home id ID #IMPLIED>
  308. <!ATTLIST remote id ID #IMPLIED>
  309. <!ATTLIST ejb-link id ID #IMPLIED>