Author: buildbot Date: Thu Apr 12 10:57:23 2018 New Revision: 1028302 Log: Production update by buildbot for cxf
Modified: websites/production/cxf/content/cache/docs.pageCache websites/production/cxf/content/docs/features.html Modified: websites/production/cxf/content/cache/docs.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/cxf/content/docs/features.html ============================================================================== --- websites/production/cxf/content/docs/features.html (original) +++ websites/production/cxf/content/docs/features.html Thu Apr 12 10:57:23 2018 @@ -209,20 +209,23 @@ public class HelloServiceImpl implements } } </pre> -</div></div><p>You can also add the feature to the server by using ServerFactoryBean, or the client by using the ClientFactoryBean</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><p>You can also add the feature to the server by using ServerFactoryBean, or the client by using the ClientFactoryBean or the ClientProxyFactoryBean</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 org.apache.cxf.frontend.ServerFactoryBean; import org.apache.cxf.frontend.ClientFactoryBean; +import org.apache.cxf.frontend.ClientProxyFactoryBean; ... ServerFactoryBean serverFactoryBean = new ServerFactoryBean(); MyFeature myFeature = new MyFeature(); // added my feature to the serverFactoryBean -serverFactoryBean.setFeatures(new ArrayList().add(myFeature)); +serverFactoryBean.setFeatures(Collections.singletonList(myFeature)); ... ClientFactoryBean clientFactoryBean = new ClientFactoryBean(); -clientFactoryBean.setFeatures(new ArrayList().add(myFeature)); +clientFactoryBean.setFeatures(Collections.singletonList(myFeature)); ... -</pre> + +ClientProxyFactoryBean clientFactoryBean = new ClientProxyFactoryBean(); +clientFactoryBean.setFeatures(Collections.singletonList(policyFeature)); </pre> </div></div><h2 id="Features-AddingaFeaturethroughconfiguration">Adding a Feature through configuration</h2><p>Here are some examples on using configuration files to add features. You can find more information about the CXF provides features at <a shape="rect" href="featureslist.html">FeaturesList</a>.</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;"><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"