cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r848424 - in /websites/production/cxf/content: cache/docs.pageCache docs/multiplexed-endpointreferences.html
Date Tue, 29 Jan 2013 14:48:01 GMT
Author: buildbot
Date: Tue Jan 29 14:48:01 2013
New Revision: 848424

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/multiplexed-endpointreferences.html

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

Modified: websites/production/cxf/content/docs/multiplexed-endpointreferences.html
==============================================================================
--- websites/production/cxf/content/docs/multiplexed-endpointreferences.html (original)
+++ websites/production/cxf/content/docs/multiplexed-endpointreferences.html Tue Jan 29 14:48:01
2013
@@ -147,7 +147,7 @@ Apache CXF -- Multiplexed EndpointRefere
    String portName = null; // unless there are multiple ports in the service 
    return EndpointReferenceUtils.getEndpointReferenceWithId(SERVICE_QNAME, 
               portName, state, BusFactory.getDefaultBus()); 
- }
+}
 </pre>
 </div></div> 
 
@@ -155,19 +155,18 @@ Apache CXF -- Multiplexed EndpointRefere
 
 <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
 <pre> 
-
-    @Resource
-    protected WebServiceContext wsContext;
+@Resource
+protected WebServiceContext wsContext;
     
-    public boolean isEven() {
+public boolean isEven() {
 
-        MessageContext messageContext = wsContext.getMessageContext();
-        String state = EndpointReferenceUtils
-            .getCurrentEndpointReferenceId(messageContext);
+    MessageContext messageContext = wsContext.getMessageContext();
+    String state = EndpointReferenceUtils
+        .getCurrentEndpointReferenceId(messageContext);
         
-        int val = Integer.parseInt(state);
-        return valIsEven(val);
-    }
+    int val = Integer.parseInt(state);
+    return valIsEven(val);
+}
 </pre>
 </div></div> 
 
@@ -182,14 +181,14 @@ Apache CXF -- Multiplexed EndpointRefere
 
 <p>The <em>multiplexWithAddress</em> property for HTTP is enabled by adding
the following to cxf.xml</p>
 <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
-<pre> &lt;bean name="&lt;port name&gt;.http-destination" abstract="true"&gt;
-   &lt;property name="multiplexWithAddress" value="true"/&gt;
- &lt;/bean&gt;
-
- &lt;!-- or for all http ports (using a wildcard) --&gt;
- &lt;bean name="*" abstract="true" class="org.apache.cxf.transport.http_jetty.JettyHTTPDestination"&gt;
-   &lt;property name="multiplexWithAddress" value="true"/&gt;
- &lt;/bean&gt;
+<pre>&lt;bean name="&lt;port name&gt;.http-destination" abstract="true"&gt;
+  &lt;property name="multiplexWithAddress" value="true"/&gt;
+&lt;/bean&gt;
+
+&lt;!-- or for all http ports (using a wildcard) --&gt;
+&lt;bean name="*" abstract="true" class="org.apache.cxf.transport.http_jetty.JettyHTTPDestination"&gt;
+  &lt;property name="multiplexWithAddress" value="true"/&gt;
+&lt;/bean&gt;
 </pre>
 </div></div> 
 
@@ -200,15 +199,14 @@ Apache CXF -- Multiplexed EndpointRefere
 <p>Sample JAX-WS client code would do the following to access a Number instance using
an EPR - </p>
 <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
 <pre> 
-
-    NumberFactoryService service = new NumberFactoryService();
-    NumberFactory factory = service.getNumberFactoryPort();
+NumberFactoryService service = new NumberFactoryService();
+NumberFactory factory = service.getNumberFactoryPort();
         
-    EndpointReferenceType epr = factory.create("20");
-    NumberService numService = new NumberService();
-    ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);                  

-    Number num = (Number)serviceImpl.getPort(epr, Number.class);
-    ...
+EndpointReferenceType epr = factory.create("20");
+NumberService numService = new NumberService();
+ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);                   
+Number num = (Number)serviceImpl.getPort(epr, Number.class);
+...
 </pre>
 </div></div> </div>
            </div>



Mime
View raw message