alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (http-jetty.xsd)

This example Apache CXF source code file (http-jetty.xsd) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

any, apache, asf, asf, continuations, is, jetty, jetty, license, license, see, threadingparametersidentifiedtype, you, you

The Apache CXF http-jetty.xsd source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at
 
  http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
-->

<xs:schema targetNamespace="http://cxf.apache.org/transports/http-jetty/configuration" 
           xmlns:tns="http://cxf.apache.org/transports/http-jetty/configuration" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
           xmlns:http-conf="http://cxf.apache.org/transports/http/configuration" 
           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
           xmlns:sec="http://cxf.apache.org/configuration/security"
  		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  		   xmlns:ptp="http://cxf.apache.org/configuration/parameterized-types" 
  		   xsi:schemaLocation="
  		     http://www.springframework.org/schema/beans
  		       http://www.springframework.org/schema/beans/spring-beans.xsd"
           elementFormDefault="qualified" 
           attributeFormDefault="unqualified"
           xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
           jaxb:version="2.0">

    <xs:import namespace="http://cxf.apache.org/configuration/security"
               schemaLocation="http://cxf.apache.org/schemas/configuration/security.xsd"/>
    <xs:import namespace="http://cxf.apache.org/configuration/parameterized-types"
               schemaLocation="http://cxf.apache.org/schemas/configuration/parameterized-types.xsd"/>
    
    <!-- Is this really supposed to be supperceeded by http-conf:HTTPListenerPolicy? -->
    <xs:complexType name="ThreadingParametersType">
       <xs:attribute name="minThreads" type="ptp:ParameterizedUShort">
          <xs:annotation>
             <xs:documentation>Specifies the minimum number of threads available to the Jetty instance for processing requests.
          </xs:annotation>
       </xs:attribute>
       <xs:attribute name="maxThreads" type="ptp:ParameterizedUShort">
       <xs:annotation>
             <xs:documentation>Specifies the maximum number of threads available to the Jetty instance for processing requests.
          </xs:annotation>
       </xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="ThreadingParametersIdentifiedType">
       <xs:sequence>
         <xs:element name="threadingParameters" type="tns:ThreadingParametersType">
            <xs:annotation>
               <xs:documentation>Specifies the thread pool properties for the parameter set.
            </xs:annotation>
         </xs:element>
       </xs:sequence>
         <xs:attribute name="id" type="xs:string">
             <xs:annotation>
                <xs:documentation>Specifies a unique identifier by which the property set can be referred.
             </xs:annotation>
         </xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="TLSServerParametersIdentifiedType">
       <xs:sequence>
          <xs:element name="tlsServerParameters" type="sec:TLSServerParametersType">
             <xs:annotation>
                <xs:documentation>Specifies the properties for the parameter set.
             </xs:annotation>
          </xs:element>
       </xs:sequence>
          <xs:attribute name="id" type="xs:string">
             <xs:annotation>
                <xs:documentation>Specifies a unique identifier by which the property set can be referred.
             </xs:annotation>
          </xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="ParametersRefType">
       <xs:attribute name="id" type="xs:string" use="required"/>
    </xs:complexType>
    
    <xs:complexType name="JettyHTTPServerEngineConfigType">
       <xs:sequence>
         <xs:choice minOccurs="0" maxOccurs="1">
          <xs:element name="tlsServerParameters" 
                      type="sec:TLSServerParametersType">
             <xs:annotation>
                <xs:documentation>Specifies an instance of the security parameters for the Jetty instance.
             </xs:annotation>
          </xs:element>
          <xs:element name="tlsServerParametersRef"
                      type="tns:ParametersRefType">
             <xs:annotation>
                <xs:documentation>Specifies a reference to a reusable set of security parameters.
             </xs:annotation>
          </xs:element>
         </xs:choice>
         <xs:choice minOccurs="0" maxOccurs="1">
          <xs:element name="threadingParameters" 
                      type="tns:ThreadingParametersType">
             <xs:annotation>
                <xs:documentation>Specifies an instance of the threading configuration use for the Jetty engine.
             </xs:annotation>
          </xs:element>
          <xs:element name="threadingParametersRef"
                      type="tns:ParametersRefType">
             <xs:annotation>
                <xs:documentation>Specifies a reference to a reusable set of threading parameters.
             </xs:annotation>
          </xs:element>
         </xs:choice>         
         <xs:element name="connector" type="xsd:anyType" minOccurs="0"/>
         <xs:element name="handlers" type="xsd:anyType" minOccurs="0"/>
         <xs:element name="sessionSupport" type="ptp:ParameterizedBoolean" minOccurs="0"/>
         <xs:element name="reuseAddress" type="ptp:ParameterizedBoolean" minOccurs="0" />          
       </xs:sequence>
       
       <xs:attribute name="port" type="ptp:ParameterizedInt" use="required">
             <xs:annotation>
                <xs:documentation>Specifies the port used by the Jetty instance.
                You can specify a value of 0 for the port attribute. Any threading 
                properties specified in an engine element with its port attribute
                set to 0 are used as the configuration for all Jetty listeners that are not explicitly configured.</xs:documentation>
             </xs:annotation>
       </xs:attribute>
       <xs:attribute name="host" type="xs:string">
             <xs:annotation>
                <xs:documentation>
                  Specifies the listen address used by the Jetty instance.
                  Value can be a hostname or ip address.
                  If not specified, Jetty will listen on all local addresses.
                </xs:documentation>
             </xs:annotation>
       </xs:attribute>
       <xs:attribute name="continuationsEnabled" type="ptp:ParameterizedBoolean">
           <xs:annotation>
                <xs:documentation>Specifies if Jetty Continuations will be explicitly supported
                by Jetty destinations. Continuations will be checked if this attribute is set to true or                            omitted, ignored otherwise</xs:documentation>
             </xs:annotation>
       </xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="JettyHTTPServerEngineFactoryConfigType">
       <xs:sequence>
           <xs:element name="identifiedTLSServerParameters" 
                       type="tns:TLSServerParametersIdentifiedType"
                       minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                 <xs:documentation>Specifies a reusable set of properties for securing an HTTP service provider.
              </xs:annotation>
           </xs:element>
           <xs:element name="identifiedThreadingParameters"
                       type="tns:ThreadingParametersIdentifiedType"
                       minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                 <xs:documentation>Specifies a reusable set of properties for controlling a Jetty instance's thread pool.
              </xs:annotation>
           </xs:element>
           <xs:element name="engine" 
                       type="tns:JettyHTTPServerEngineConfigType" 
                       minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                 <xs:documentation>Specifies the configuration for a particular Jetty runtime instance.
              </xs:annotation>
           </xs:element>
       </xs:sequence>
       <xs:attribute name="bus" type="xs:string" default="cxf"/>
       <xs:attribute name="id" type="xs:ID" use="optional"/>
    </xs:complexType>
    
    <xs:element name="engine-factory" 
                type="tns:JettyHTTPServerEngineFactoryConfigType">
       <xs:annotation>
          <xs:documentation>Contains the configuration for a Jetty instance.
       </xs:annotation>
    </xs:element>
 </xs:schema>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF http-jetty.xsd source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.