public Map<String, Object> getProperties() { if (bus != null) { return bus.getProperties(); } return properties; } public void setProperties(Map<String, Object> s) {
public Map<String, Object> getProperties() { if (bus != null) { return bus.getProperties(); } return properties; } public void setProperties(Map<String, Object> s) {
static Bus configureBus(Bus bus) { // Needed to be async to force the use of Apache HTTP Components client. // Details at http://cxf.apache.org/docs/asynchronous-client-http-transport.html. // Apache HTTP Components needed to support NTLM authentication. bus.getProperties().put(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE); bus.getProperties().put(AsyncHTTPConduitFactory.USE_POLICY, UseAsyncPolicy.ALWAYS); return bus; }
public ObjectName getObjectName() throws JMException { String busId = bus.getId(); StringBuilder buffer = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME).append(':'); buffer.append(ManagementConstants.BUS_ID_PROP).append('=').append(busId).append(','); buffer.append(ManagementConstants.TYPE_PROP).append('=').append(TYPE_VALUE).append(','); // Added the instance id to make the ObjectName unique String instanceId = (String)bus.getProperties().get(INSTANCE_ID); if (StringUtils.isEmpty(instanceId)) { instanceId = new StringBuilder().append(bus.hashCode()).toString(); } buffer.append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(instanceId); return new ObjectName(buffer.toString()); } }
public ObjectName getObjectName() throws JMException { String busId = bus.getId(); StringBuilder buffer = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME).append(':'); buffer.append(ManagementConstants.BUS_ID_PROP).append('=').append(busId).append(','); buffer.append(ManagementConstants.TYPE_PROP).append('=').append(TYPE_VALUE).append(','); // Added the instance id to make the ObjectName unique String instanceId = (String)bus.getProperties().get(INSTANCE_ID); if (StringUtils.isEmpty(instanceId)) { instanceId = new StringBuffer().append(bus.hashCode()).toString(); } buffer.append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(instanceId); return new ObjectName(buffer.toString()); } }
public ObjectName getObjectName() throws JMException { String busId = bus.getId(); StringBuilder buffer = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME).append(':'); buffer.append(ManagementConstants.BUS_ID_PROP).append('=').append(busId).append(','); buffer.append(ManagementConstants.TYPE_PROP).append('=').append(TYPE_VALUE).append(','); // Added the instance id to make the ObjectName unique String instanceId = (String)bus.getProperties().get(INSTANCE_ID); if (StringUtils.isEmpty(instanceId)) { instanceId = new StringBuilder().append(bus.hashCode()).toString(); } buffer.append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(instanceId); return new ObjectName(buffer.toString()); } }
public ObjectName getObjectName() throws JMException { String busId = bus.getId(); StringBuilder buffer = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME).append(':'); buffer.append(ManagementConstants.BUS_ID_PROP).append('=').append(busId).append(','); buffer.append(ManagementConstants.TYPE_PROP).append('=').append(TYPE_VALUE).append(','); // Added the instance id to make the ObjectName unique String instanceId = (String)bus.getProperties().get(INSTANCE_ID); if (StringUtils.isEmpty(instanceId)) { instanceId = new StringBuffer().append(bus.hashCode()).toString(); } buffer.append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(instanceId); return new ObjectName(buffer.toString()); } }
public AsyncHTTPConduitFactory(Bus b) { this(); addListener(b); setProperties(b.getProperties()); }
public void initialize(String serviceEndpoint, String userName, String password) throws ConnectionException { Object proxy = this.serviceClient; java.util.Map<String, Object> requestContext = ((javax.xml.ws.BindingProvider) proxy) .getRequestContext(); // This will show you how to configure the http conduit dynamically Client client = ClientProxy.getClient(proxy); Bus bus = ((EndpointImpl) client.getEndpoint()).getBus(); bus.getProperties().put("soap.no.validate.parts", true); HTTPConduit http = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); http.setClient(httpClientPolicy); if (StringUtils.isNotBlank(userName) && StringUtils.isNotBlank(password)) { requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceEndpoint); requestContext.put(BindingProvider.USERNAME_PROPERTY, userName); requestContext.put(BindingProvider.PASSWORD_PROPERTY, password); } setServiceClient(proxy); }
public WSDiscoveryServiceImpl(Bus b) { bus = b == null ? BusFactory.newInstance().createBus() : b; client = new WSDiscoveryClient(); update(bus.getProperties()); } public WSDiscoveryServiceImpl() {
public WSDiscoveryServiceImpl() { bus = BusFactory.newInstance().createBus(); client = new WSDiscoveryClient(); update(bus.getProperties()); } public WSDiscoveryServiceImpl(Bus b, Map<String, Object> props) {
public WSDiscoveryServiceImpl(Bus b) { bus = b == null ? BusFactory.newInstance().createBus() : b; client = new WSDiscoveryClient(); update(bus.getProperties()); } public WSDiscoveryServiceImpl() {
public WSDiscoveryServiceImpl() { bus = BusFactory.newInstance().createBus(); client = new WSDiscoveryClient(); update(bus.getProperties()); } public WSDiscoveryServiceImpl(Bus b, Map<String, Object> props) {
@AfterClass public static void afterClass() throws Exception { BusFactory.getDefaultBus().getProperties().remove("skip.default.json.provider.registration"); }
Bus b = ex.getBus(); if (b != null) { o.putAll(b.getProperties());
Bus b = ex.getBus(); if (b != null) { o.putAll(b.getProperties());
Bus b = ex.getBus(); if (b != null) { o.putAll(b.getProperties());
Bus b = ex.getBus(); if (b != null) { o.putAll(b.getProperties());
@Override protected void doInit() throws Exception { //Load configuration configuration.setRootDir(context.getWorkspaceRoot()); configuration.setComponentName(context.getComponentName()); configuration.load(); if (configuration.getBusCfg() != null && configuration.getBusCfg().length() > 0) { CXF_CONFIG[0] = configuration.getBusCfg(); } if (bus == null) { bus = new SpringBusFactory().createBus(CXF_CONFIG); bus.getProperties().put(org.apache.cxf.interceptor.OneWayProcessorInterceptor.USE_ORIGINAL_THREAD, "true"); } super.doInit(); }
bus.getProperties().putAll(PropertiesHelper.map(busProperties));