bus.getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(serviceName); if (null != uri) { try {
public CxfPlugin(@Config(defaultValue = "/ws/*", doc = "Path where the CXF plugin will be deployed") String mountPoint, @Config(defaultValue = "BOTH") String schemaValidation, Collection<EndpointCustomizer> endpointCustomizers, Collection<ServiceCustomizer> serviceCustomizers, ServletBuilder servletBuilder) throws ServletException { this.schemaValidation = schemaValidation; this.endpointCustomizers = endpointCustomizers; Bus bus = BusFactory.newInstance().createBus(); ServiceContractResolverRegistry reg = new ServiceContractResolverRegistryImpl(bus); reg.register(new RespiroServiceContractResolver()); CXFNonSpringServlet cxfNonSpringServlet = new CXFNonSpringServlet(); cxfNonSpringServlet.setBus(bus); cxfNonSpringServlet.init(servletBuilder.servletConfig("cxf", new Properties())); cxfFilter = servletBuilder.servlet(cxfNonSpringServlet, mountPoint); endpointBuilder = new DefaultEndpointBuilder(); serviceBuilder = new DefaultServiceBuilder(serviceCustomizers); endpointDeployer = endpointConfigs -> CxfPlugin.this.deployEndpoints(endpointConfigs); }
public String getWsdlURL() { if (wsdlURL == null) { for (AbstractServiceConfiguration c : serviceConfigurations) { wsdlURL = c.getWsdlURL(); if (wsdlURL != null) { break; } } if (null == wsdlURL && getBus() != null) { ServiceContractResolverRegistry registry = getBus() .getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(this.getServiceQName()); if (null != uri) { try { wsdlURL = uri.toURL().toString(); } catch (MalformedURLException e) { LOG.log(Level.FINE, "resolve qname failed", this.getServiceQName()); } } } } if (wsdlURL != null) { // create a unique string so if its an interned string (like // from an annotation), caches will clear wsdlURL = new String(wsdlURL); } } return wsdlURL; }
public String getWsdlURL() { if (wsdlURL == null) { for (AbstractServiceConfiguration c : serviceConfigurations) { wsdlURL = c.getWsdlURL(); if (wsdlURL != null) { break; } } if (null == wsdlURL && getBus() != null) { ServiceContractResolverRegistry registry = getBus() .getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(this.getServiceQName()); if (null != uri) { try { wsdlURL = uri.toURL().toString(); } catch (MalformedURLException e) { LOG.log(Level.FINE, "resolve qname failed", this.getServiceQName()); } } } } if (wsdlURL != null) { // create a unique string so if its an interned string (like // from an annotation), caches will clear wsdlURL = new String(wsdlURL); } } return wsdlURL; }
public String getWsdlURL() { if (wsdlURL == null) { for (AbstractServiceConfiguration c : serviceConfigurations) { wsdlURL = c.getWsdlURL(); if (wsdlURL != null) { break; } } if (null == wsdlURL && getBus() != null) { ServiceContractResolverRegistry registry = getBus() .getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(this.getServiceQName()); if (null != uri) { try { wsdlURL = uri.toURL().toString(); } catch (MalformedURLException e) { LOG.log(Level.FINE, "resolve qname failed", this.getServiceQName()); } } } } if (wsdlURL != null) { // create a unique string so if its an interned string (like // from an annotation), caches will clear wsdlURL = new String(wsdlURL); } } return wsdlURL; }
bus.getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(serviceName); if (null != uri) { try {