sb.append(getName()); if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); if (getType() != null) { sb.append(", type="); sb.append(getType()); sb.append(serviceqname[1]); if (this.getServiceendpoints() != null) { sb.append(", port-component/service-endpoint-interface="); sb.append(this.getServiceendpoints());
/** * Add a web service reference for this web application. * * @param service New web service reference */ public void addService(ContextService service) { if (entries.contains(service.getName())) { return; } else { entries.add(service.getName()); } synchronized (services) { service.setNamingResources(this); services.put(service.getName(), service); } support.firePropertyChange("service", null, service); }
sb.append(" <service-ref>\n"); appendElement(sb, INDENT4, "description", serviceRef.getDescription()); appendElement(sb, INDENT4, "display-name", serviceRef.getDisplayname()); appendElement(sb, INDENT4, "service-ref-name", serviceRef.getName()); appendElement(sb, INDENT4, "service-interface", serviceRef.getInterface()); appendElement(sb, INDENT4, "service-ref-type", serviceRef.getType()); appendElement(sb, INDENT4, "wsdl-file", serviceRef.getWsdlfile()); appendElement(sb, INDENT4, "jaxrpc-mapping-file", serviceRef.getJaxrpcmappingfile()); String qname = serviceRef.getServiceqnameNamespaceURI(); if (qname != null) { qname = qname + ":"; qname = qname + serviceRef.getServiceqnameLocalpart(); appendElement(sb, INDENT4, "service-qname", qname); Iterator<String> endpointIter = serviceRef.getServiceendpoints(); while (endpointIter.hasNext()) { String endpoint = endpointIter.next(); endpoint); appendElement(sb, INDENT6, "port-component-link", serviceRef.getProperty(endpoint)); sb.append(" </port-component-ref>\n");
if (service.getWsdlfile() != null) { URL wsdlURL = null; wsdlURL = new URL(service.getWsdlfile()); } catch (MalformedURLException e) { try { wsdlURL = ((Context) container).getServletContext().getResource( service.getWsdlfile()); } catch (MalformedURLException e) { try { wsdlURL = ((Context) container).getServletContext().getResource( "/" + service.getWsdlfile()); log.debug(" Changing service ref wsdl file for /" + service.getWsdlfile()); } catch (MalformedURLException e) { log.error(sm.getString("naming.wsdlFailed", e)); service.setWsdlfile(null); else service.setWsdlfile(wsdlURL.toString()); if (service.getJaxrpcmappingfile() != null) { URL jaxrpcURL = null; jaxrpcURL = new URL(service.getJaxrpcmappingfile()); } catch (MalformedURLException e) {
ContextService service = new ContextService(); service.setName(name); service.setWsdlfile(annotation.mappedName()); service.setType(type); service.setDescription(annotation.description());
public void addServiceRef(ContextService serviceRef) { serviceRefs.put(serviceRef.getName(), serviceRef); } public Map<String,ContextService> getServiceRefs() { return serviceRefs; }
sb.append(" <service-ref>\n"); appendElement(sb, INDENT4, "description", serviceRef.getDescription()); appendElement(sb, INDENT4, "display-name", serviceRef.getDisplayname()); appendElement(sb, INDENT4, "service-ref-name", serviceRef.getName()); appendElement(sb, INDENT4, "service-interface", serviceRef.getInterface()); appendElement(sb, INDENT4, "service-ref-type", serviceRef.getType()); appendElement(sb, INDENT4, "wsdl-file", serviceRef.getWsdlfile()); appendElement(sb, INDENT4, "jaxrpc-mapping-file", serviceRef.getJaxrpcmappingfile()); String qname = serviceRef.getServiceqnameNamespaceURI(); if (qname != null) { qname = qname + ":"; qname = qname + serviceRef.getServiceqnameLocalpart(); appendElement(sb, INDENT4, "service-qname", qname); Iterator<String> endpointIter = serviceRef.getServiceendpoints(); while (endpointIter.hasNext()) { String endpoint = endpointIter.next(); endpoint); appendElement(sb, INDENT6, "port-component-link", serviceRef.getProperty(endpoint)); sb.append(" </port-component-ref>\n");
if (service.getWsdlfile() != null) { URL wsdlURL = null; wsdlURL = new URL(service.getWsdlfile()); } catch (MalformedURLException e) { wsdlURL = ((Context) container). getServletContext(). getResource(service.getWsdlfile()); } catch (MalformedURLException e) { wsdlURL = ((Context) container). getServletContext(). getResource("/" + service.getWsdlfile()); logger.debug(" Changing service ref wsdl file for /" + service.getWsdlfile()); } catch (MalformedURLException e) { logger.error(sm.getString("naming.wsdlFailed", e)); service.setWsdlfile(null); else service.setWsdlfile(wsdlURL.toString()); if (service.getJaxrpcmappingfile() != null) { URL jaxrpcURL = null; jaxrpcURL = new URL(service.getJaxrpcmappingfile()); } catch (MalformedURLException e) {
ContextService service = new ContextService(); service.setName(name); service.setWsdlfile(annotation.mappedName()); service.setType(type); service.setDescription(annotation.description()); service.setLookupName(annotation.lookup());
/** * Add a web service reference for this web application. * * @param service New web service reference */ public void addService(ContextService service) { if (entries.contains(service.getName())) { return; } else { entries.add(service.getName()); } synchronized (services) { service.setNamingResources(this); services.put(service.getName(), service); } support.firePropertyChange("service", null, service); }
public void addServiceRef(ContextService serviceRef) { serviceRefs.put(serviceRef.getName(), serviceRef); } public Map<String,ContextService> getServiceRefs() { return serviceRefs; }
sb.append(" <service-ref>\n"); appendElement(sb, INDENT4, "description", serviceRef.getDescription()); appendElement(sb, INDENT4, "display-name", serviceRef.getDisplayname()); appendElement(sb, INDENT4, "service-ref-name", serviceRef.getName()); appendElement(sb, INDENT4, "service-interface", serviceRef.getInterface()); appendElement(sb, INDENT4, "service-ref-type", serviceRef.getType()); appendElement(sb, INDENT4, "wsdl-file", serviceRef.getWsdlfile()); appendElement(sb, INDENT4, "jaxrpc-mapping-file", serviceRef.getJaxrpcmappingfile()); String qname = serviceRef.getServiceqnameNamespaceURI(); if (qname != null) { qname = qname + ":"; qname = qname + serviceRef.getServiceqnameLocalpart(); appendElement(sb, INDENT4, "service-qname", qname); Iterator<String> endpointIter = serviceRef.getServiceendpoints(); while (endpointIter.hasNext()) { String endpoint = endpointIter.next(); endpoint); appendElement(sb, INDENT6, "port-component-link", serviceRef.getProperty(endpoint)); sb.append(" </port-component-ref>\n");
if (service.getWsdlfile() != null) { URL wsdlURL = null; wsdlURL = new URL(service.getWsdlfile()); } catch (MalformedURLException e) { try { wsdlURL = ((Context) container).getServletContext().getResource( service.getWsdlfile()); } catch (MalformedURLException e) { try { wsdlURL = ((Context) container).getServletContext().getResource( "/" + service.getWsdlfile()); log.debug(" Changing service ref wsdl file for /" + service.getWsdlfile()); } catch (MalformedURLException e) { log.error(sm.getString("naming.wsdlFailed", e)); service.setWsdlfile(null); else service.setWsdlfile(wsdlURL.toString()); if (service.getJaxrpcmappingfile() != null) { URL jaxrpcURL = null; jaxrpcURL = new URL(service.getJaxrpcmappingfile()); } catch (MalformedURLException e) {
ContextService service = new ContextService(); service.setName(name); service.setWsdlfile(annotation.mappedName()); service.setType(type); service.setDescription(annotation.description()); service.setLookupName(annotation.lookup());
sb.append(getName()); if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); if (getType() != null) { sb.append(", type="); sb.append(getType()); sb.append(serviceqname[1]); if (this.getServiceendpoints() != null) { sb.append(", port-component/service-endpoint-interface="); sb.append(this.getServiceendpoints());
/** * Add a web service reference for this web application. * * @param service New web service reference */ public void addService(ContextService service) { if (entries.contains(service.getName())) { return; } else { entries.add(service.getName()); } synchronized (services) { service.setNamingResources(this); services.put(service.getName(), service); } support.firePropertyChange("service", null, service); }
public void addServiceRef(ContextService serviceRef) { serviceRefs.put(serviceRef.getName(), serviceRef); } public Map<String,ContextService> getServiceRefs() { return serviceRefs; }
sb.append(getName()); if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); if (getType() != null) { sb.append(", type="); sb.append(getType()); sb.append(serviceqname[1]); if (this.getServiceendpoints() != null) { sb.append(", port-component/service-endpoint-interface="); sb.append(this.getServiceendpoints());
final String serviceName = service != null ? service.getName() : null; if (serviceName != null) { ContextAccessController.setWritable(namingContextListener.getName(), standardContext.getNamingToken());