Skip to content

Commit

Permalink
Merge pull request #154 from yersan/JBMETA-432
Browse files Browse the repository at this point in the history
[JBMETA-432] Add support for Jakarta EE Web Service 2.0 Metadata
  • Loading branch information
bstansberry committed Aug 3, 2022
2 parents 4a7daef + fb63495 commit 3fed91b
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 3 deletions.
Expand Up @@ -190,6 +190,7 @@ public Object run() {
registerEntity("http://xmlns.jcp.org/xml/ns/javaee/javaee_web_services_1_4.xsd", "javaee_web_services_1_4.xsd");
registerEntity("https://jakarta.ee/xml/ns/jakartaee/jakartaee_web_services_client_2_0.xsd", "jakartaee_web_services_client_2_0.xsd");
registerEntity("https://jakarta.ee/xml/ns/jakartaee/jakartaee_web_services_2_0.xsd", "jakartaee_web_services_2_0.xsd");
registerEntity("https://jakarta.ee/xml/ns/jakartaee/akartaee_web_services_metadata_handler_3_0.xsd", "jakartaee_web_services_metadata_handler_3_0.xsd");

// jsp
registerEntity("http://java.sun.com/xml/ns/javaee/jsp_2_2.xsd", "jsp_2_2.xsd");
Expand Down
Expand Up @@ -9,7 +9,7 @@
<xsd:annotation>
<xsd:documentation>

Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2009, 2021 Oracle and/or its affiliates. All rights reserved.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -90,7 +90,7 @@
</xsd:documentation>
</xsd:annotation>

<xsd:include schemaLocation="jakartaee_9.xsd"/>
<xsd:include schemaLocation="jakartaee_10.xsd"/>


<!-- **************************************************** -->
Expand Down
Expand Up @@ -9,7 +9,7 @@
<xsd:annotation>
<xsd:documentation>

Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2009, 2021 Oracle and/or its affiliates. All rights reserved.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
SPDX-License-Identifier: BSD-3-Clause
-->

<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://jakarta.ee/xml/ns/jakartaee"
xmlns:jakartaee="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="3.0">

<xsd:annotation>
<xsd:documentation>
This is the XML Schema for the Handler chain configuration descriptor.
The configuration file must be in the classpath within the JAR/WAR file.

All Handler chain configuration descriptors
should indicate the descriptor schema by using the Jakarta EE
namespace:

https://jakarta.ee/xml/ns/jakartaee

and by indicating the version of the schema by
using the version element as shown below:

<handler-chains xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/jakartaee_web_services_metadata_handler_3_0.xsd"
version="3.0">
...
</handler-chains>

The instance documents may indicate the published version of
the schema using the xsi:schemaLocation attribute for Jakarta EE
namespace with the following location:

https://jakarta.ee/xml/ns/jakartaee/jakartaee_web_services_metadata_handler_3_0.xsd
</xsd:documentation>
</xsd:annotation>

<xsd:include schemaLocation="jakartaee_9.xsds"/>

<xsd:element name="handler-chains"
type="jakartaee:service-ref_handler-chainsType">
<xsd:annotation>
<xsd:documentation>

The handler-chains element is the root element for defining
handlerchains.

The Jakarta Web Services Metadata
specification defines the @jakarta.jws.HandlerChain annotation
that refers to an XML descriptor conforming to this schema.

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

</xsd:schema>

0 comments on commit 3fed91b

Please sign in to comment.