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> <bean name="<port name>.http-destination" abstract="true">
- <property name="multiplexWithAddress" value="true"/>
- </bean>
-
- <!-- or for all http ports (using a wildcard) -->
- <bean name="*" abstract="true"
class="org.apache.cxf.transport.http_jetty.JettyHTTPDestination">
- <property name="multiplexWithAddress" value="true"/>
- </bean>
+<pre><bean name="<port name>.http-destination" abstract="true">
+ <property name="multiplexWithAddress" value="true"/>
+</bean>
+
+<!-- or for all http ports (using a wildcard) -->
+<bean name="*" abstract="true"
class="org.apache.cxf.transport.http_jetty.JettyHTTPDestination">
+ <property name="multiplexWithAddress" value="true"/>
+</bean>
</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>