You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bu...@apache.org on 2018/04/19 10:57:32 UTC

svn commit: r1028655 - in /websites/production/cxf/content: cache/docs.pageCache docs/bus-configuration.html docs/jax-ws-configuration.html

Author: buildbot
Date: Thu Apr 19 10:57:31 2018
New Revision: 1028655

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/bus-configuration.html
    websites/production/cxf/content/docs/jax-ws-configuration.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/bus-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/bus-configuration.html (original)
+++ websites/production/cxf/content/docs/bus-configuration.html Thu Apr 19 10:57:31 2018
@@ -32,9 +32,9 @@
 <link type="text/css" rel="stylesheet" href="/resources/highlighter/styles/shThemeCXF.css">
 
 <script src='/resources/highlighter/scripts/shCore.js'></script>
-<script src='/resources/highlighter/scripts/shBrushBash.js'></script>
-<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
 <script src='/resources/highlighter/scripts/shBrushJava.js'></script>
+<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
+<script src='/resources/highlighter/scripts/shBrushBash.js'></script>
 <script>
   SyntaxHighlighter.defaults['toolbar'] = false;
   SyntaxHighlighter.all();
@@ -118,19 +118,8 @@ Apache CXF -- Bus Configuration
          <td height="100%">
            <!-- Content -->
            <div class="wiki-content">
-<div id="ConfluenceContent"><h1 id="BusConfiguration-ConfiguringtheBus">Configuring the Bus</h1>
-
-<p>The Bus is the backbone of the CXF architecture. It manages extensions and acts as an interceptor provider. The interceptors for the bus will be added to the respective inbound and outbound message and fault interceptor chains for all client and server endpoints created on the bus (in its context).  By default, it contributes no interceptors to either of these interceptor chain types, but they can be added via configuration files or with Java code, as shown below.</p>
-
-<p>Note: For endpoint-specific configuration (as opposed to configuration for <strong>all</strong> for endpoints created by the CXF bus), look at the <a shape="rect" href="debugging-and-logging.html">Logging Messages</a> section for code samples.</p>
-
-<h3 id="BusConfiguration-UsingaConfigurationFile">Using a Configuration File</h3>
-
-<p>Here, simply define a bus element in your Spring configuration file, and add child elements as required, for example:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
-&lt;beans xmlns="http://www.springframework.org/schema/beans"
+<div id="ConfluenceContent"><h1 id="BusConfiguration-ConfiguringtheBus">Configuring the Bus</h1><p>The Bus is the backbone of the CXF architecture. It manages extensions and acts as an interceptor provider. The interceptors for the bus will be added to the respective inbound and outbound message and fault interceptor chains for all client and server endpoints created on the bus (in its context). By default, it contributes no interceptors to either of these interceptor chain types, but they can be added via configuration files or with Java code, as shown below.</p><p>Note: For endpoint-specific configuration (as opposed to configuration for <strong>all</strong> for endpoints created by the CXF bus), look at the <a shape="rect" href="debugging-and-logging.html">Logging Messages</a> section for code samples.</p><h3 id="BusConfiguration-UsingaConfigurationFile">Using a Configuration File</h3><p>Here, simply define a bus element in your Spring configuration file, and add child elements a
 s required, for example:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:cxf="http://cxf.apache.org/core"
       xsi:schemaLocation="
@@ -146,22 +135,8 @@ http://www.springframework.org/schema/be
     &lt;/cxf:bus&gt; 
 &lt;/beans&gt;
 </pre>
-</div></div>
-
-<p>The configurable properties of the bus are defined in the bus configuration schema <a shape="rect" href="http://cxf.apache.org/schemas/core.xsd">http://cxf.apache.org/schemas/core.xsd</a>. Be sure to include the namespace - URI pair for this schema in the schemaLocation attribute of the &lt;beans&gt; element.</p>
-
-<p>The &lt;bus&gt; element supports the following child elements:</p>
-
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Value</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>inInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to inbound message interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>inFaultInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to inbound fault interceptor chains.  A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>outInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to outbound message interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1
 " class="confluenceTd"><p>outFaultInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to outbound fault interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>properties</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Contextual properties which will be applied to all endpoints and clients using this bus</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>features</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The features applied to the bus. A list of &lt;bean&gt;s or &lt;ref&gt;s. See <a shape="rect" href="featureslist.html">here</a> for a list of available features.</p></td></tr></tbody></table></div>
-
-
-<h3 id="BusConfiguration-ConfigurationusingJavacode">Configuration using Java code</h3>
-
-<p>Although usually less convenient, interceptors can be added to the bus using Java code.  Given an <a shape="rect" href="http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxws/EndpointImpl.html">EndpointImpl</a> object, the bus can be accessed (and interceptors added) as follows:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
-import javax.xml.ws.Endpoint;
+</div></div><p>The configurable properties of the bus are defined in the bus configuration schema <a shape="rect" href="http://cxf.apache.org/schemas/core.xsd">http://cxf.apache.org/schemas/core.xsd</a>. Be sure to include the namespace - URI pair for this schema in the schemaLocation attribute of the &lt;beans&gt; element.</p><p>The &lt;bus&gt; element supports the following child elements:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Value</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>inInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to inbound message interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>inFaultInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The inte
 rceptors contributed to inbound fault interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>outInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to outbound message interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>outFaultInterceptors</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The interceptors contributed to outbound fault interceptor chains. A list of &lt;bean&gt;s or &lt;ref&gt;s.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>properties</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Contextual properties which will be applied to all endpoints and clients using this bus</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>features</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The features applie
 d to the bus. A list of &lt;bean&gt;s or &lt;ref&gt;s. See <a shape="rect" href="featureslist.html">here</a> for a list of available features.</p></td></tr></tbody></table></div><h3 id="BusConfiguration-ConfigurationusingJavacode">Configuration using Java code</h3><p>Although usually less convenient, interceptors can be added to the bus using Java code. Given an <a shape="rect" href="http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxws/EndpointImpl.html">EndpointImpl</a> object, the bus can be accessed (and interceptors added) as follows:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">import javax.xml.ws.Endpoint;
 import org.apache.cxf.interceptor.LoggingInInterceptor;
 import org.apache.cxf.interceptor.LoggingOutInterceptor;
 import org.apache.cxf.jaxws.EndpointImpl;
@@ -169,14 +144,10 @@ import org.apache.cxf.jaxws.EndpointImpl
 Object implementor = new GreeterImpl();
 EndpointImpl ep = (EndpointImpl) Endpoint.publish("http://localhost/service", implementor);
 
-ep.getServiceFactory().getBus().getInInterceptors().add(new LoggingInInterceptor());
-ep.getServiceFactory().getBus().getOutInterceptors().add(new LoggingOutInterceptor());
+ep.getInInterceptors().add(new LoggingInInterceptor());
+ep.getOutInterceptors().add(new LoggingOutInterceptor());
 </pre>
-</div></div>
-
-<h1 id="BusConfiguration-ExtendingtheBus">Extending the Bus</h1>
-
-<p>TODO: Explain how to add a custom bus extension (META-INF/cxf/cxf.extension ...).</p></div>
+</div></div><h1 id="BusConfiguration-ExtendingtheBus">Extending the Bus</h1><p>TODO: Explain how to add a custom bus extension (META-INF/cxf/cxf.extension ...).</p></div>
            </div>
            <!-- Content -->
          </td>

Modified: websites/production/cxf/content/docs/jax-ws-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/jax-ws-configuration.html (original)
+++ websites/production/cxf/content/docs/jax-ws-configuration.html Thu Apr 19 10:57:31 2018
@@ -300,13 +300,10 @@ cxfEndpoint.getOutInterceptors().add(...
 </div></div><p>To cast a JAX-WS endpoint to a CXF server:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">javax.xml.ws.Endpoint jaxwsEndpoint = javax.xml.ws.Endpoint.publish(
    "http://localhost:9020/SoapContext/GreeterPort", new GreeterImpl());
+
 org.apache.cxf.jaxws.EndpointImpl jaxwsEndpointImpl = 
    (org.apache.cxf.jaxws.EndpointImpl)jaxwsEndpoint;
-org.apache.cxf.endpoint.Server server = jaxwsEndpointImpl.getServer();
-org.apache.cxf.endpoint.Endpoint cxfEndpoint = server.getEndpoint();
-cxfEndpoint.getOutInterceptors().add(...);
-org.apache.cxf.service.Service cxfService = cxfEndpoint.getService();
-cxfService.getOutInterceptors().add(...);
+jaxwsEndpointImpl.getOutInterceptors().add(...);
 </pre>
 </div></div><h1 id="JAX-WSConfiguration-ConfiguretheJAXWSServer/ClientUsingSpring">Configure the JAXWS Server/Client Using Spring</h1><p>CXF provides &lt;jaxws:server&gt;, &lt;jaxws:client&gt; to configure the server/client side endpoint. Here are some examples:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;beans xmlns="http://www.springframework.org/schema/beans"