/** * @return <code>true</code> if WS-Addressing enabled. */ @ManagedAttribute(description = "Addressing Enabled") public boolean isAddressing() { return getComponent().getWsTransactionConfiguration().isAddressing(); }
public void testEndpointAttributes() throws Exception { MBeanServer mbeanServer = getMBeanServer(); Set<ObjectName> s = CastUtils.cast(mbeanServer.queryNames(new ObjectName( "org.apache.camel:*,type=endpoints,name=\"some-ws-iti://data*\""), null)); ObjectName on = (ObjectName) s.toArray()[0]; assertEquals(SomeItiComponent.WS_CONFIG.isAddressing(), ((Boolean) mbeanServer.getAttribute(on, "Addressing")).booleanValue()); assertEquals(SomeItiComponent.WS_CONFIG.isMtom(), ((Boolean) mbeanServer.getAttribute(on, "Mtom")).booleanValue()); assertEquals(SomeItiComponent.WS_CONFIG.isSwaOutSupport(), ((Boolean) mbeanServer.getAttribute(on, "SwaOutSupport")).booleanValue()); }
if (wsTransactionConfiguration.isAddressing()) { MustUnderstandDecoratorInterceptor interceptor = new MustUnderstandDecoratorInterceptor(); for (String nsUri : SoapUtils.WS_ADDRESSING_NS_URIS) {