/** * Get the deployment. If there is no deployment, create an empty one * @return the deployment document */ public WSDDDeployment getDeployment() { if (deployment == null) { deployment = new WSDDDeployment(); } return deployment; }
public void deployToRegistry(WSDDDeployment deployment) { deployment.addHandler(this); } }
public void deployToRegistry(WSDDDeployment registry) { registry.addService(this); // Register the name of the service as a valid namespace, just for // backwards compatibility registry.registerNamespaceForService(getQName().getLocalPart(), this); for (int i = 0; i < namespaces.size(); i++) { String namespace = (String) namespaces.elementAt(i); registry.registerNamespaceForService(namespace, this); } super.deployToRegistry(registry); }
public void deployToRegistry(WSDDDeployment target) throws ConfigurationException { WSDDGlobalConfiguration global = getGlobalConfiguration(); if (global != null) { target.setGlobalConfiguration(global); } Iterator i = handlers.values().iterator(); while (i.hasNext()) { WSDDHandler handler = (WSDDHandler) i.next(); target.deployHandler(handler); } i = transports.values().iterator(); while (i.hasNext()) { WSDDTransport transport = (WSDDTransport) i.next(); target.deployTransport(transport); } i = services.values().iterator(); while (i.hasNext()) { WSDDService service = (WSDDService) i.next(); service.deployToRegistry(target); } i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); target.deployTypeMapping(mapping); } }
throws WSDDException { super(e); Element [] elements = getChildElements(e, ELEM_WSDD_HANDLER); int i; for (i = 0; i < elements.length; i++) { WSDDHandler handler = new WSDDHandler(elements[i]); deployHandler(handler); elements = getChildElements(e, ELEM_WSDD_CHAIN); for (i = 0; i < elements.length; i++) { WSDDChain chain = new WSDDChain(elements[i]); deployHandler(chain); elements = getChildElements(e, ELEM_WSDD_TRANSPORT); for (i = 0; i < elements.length; i++) { WSDDTransport transport = new WSDDTransport(elements[i]); deployTransport(transport); elements = getChildElements(e, ELEM_WSDD_SERVICE); for (i = 0; i < elements.length; i++) { try { WSDDService service = new WSDDService(elements[i]); deployService(service); } catch (WSDDNonFatalException ex) { elements = getChildElements(e, ELEM_WSDD_TYPEMAPPING); for (i = 0; i < elements.length; i++) { try { WSDDTypeMapping mapping = new WSDDTypeMapping(elements[i]);
for (int n = 0; n < handlers.size(); n++) { qname = (QName)handlers.get(n); registry.undeployHandler(qname); registry.undeployHandler(qname); registry.undeployTransport(qname); throw new ConfigurationException(exp); registry.undeployService(qname);
public void configureEngine(AxisEngine engine) throws ConfigurationException { this.deployment = new WSDDDeployment(); WSDDGlobalConfiguration config = new WSDDGlobalConfiguration(); config.setOptionsHashtable(new Hashtable()); this.deployment.setGlobalConfiguration(config); File [] dirs = this.dir.listFiles(new DirFilter()); for (int i = 0; i < dirs.length; i++) { processWSDD(dirs[i]); } this.deployment.configureEngine(engine); engine.refreshGlobalOptions(); }
if (config instanceof WSDDEngineConfiguration) { final WSDDDeployment deployment = ((WSDDEngineConfiguration)config).getDeployment(); for (final WSDDService serviceToDeploy : wsddDoc.getDeployment().getServices()) { if (deployment.getWSDDService(serviceToDeploy.getQName()) != null) { throw new OrchestraRuntimeException("A service has already been deployed for url: " + this.expectedAddressPrefix + serviceToDeploy.getQName().getLocalPart());
static public void undeployService(QName qname) { getWSDDEngineConfiguration().getDeployment().undeployService(qname); }
public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException { if (false == tmrDeployed) { Iterator i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); deployMapping(mapping); } tmrDeployed = true; } return tmr; }
static public WSDDService[] getServices() { return getWSDDEngineConfiguration().getDeployment().getServices(); }
static public WSDDService getService(QName qname) { return getWSDDEngineConfiguration().getDeployment().getWSDDService(qname); }
public void deployToRegistry(WSDDDeployment registry) { registry.addTransport(this); super.deployToRegistry(registry); } }
static public void deployHandler(WSDDHandler handler) { getWSDDEngineConfiguration().getDeployment().deployHandler(handler); }
public void configureEngine(AxisEngine engine) throws ConfigurationException { try { if (getInputStream() == null) { try { setInputStream(new FileInputStream(configFile)); } catch (Exception e) { if (searchClasspath) setInputStream(ClassUtils.getResourceAsStream(engine.getClass(), filename, true)); } } if (getInputStream() == null) { throw new ConfigurationException( Messages.getMessage("noConfigFile")); } WSDDDocument doc = new WSDDDocument(XMLUtils. newDocument(getInputStream())); deployment = doc.getDeployment(); deployment.configureEngine(engine); engine.refreshGlobalOptions(); setInputStream(null); } catch (Exception e) { throw new ConfigurationException(e); } }
throws WSDDException { super(e); Element [] elements = getChildElements(e, ELEM_WSDD_HANDLER); int i; for (i = 0; i < elements.length; i++) { WSDDHandler handler = new WSDDHandler(elements[i]); deployHandler(handler); elements = getChildElements(e, ELEM_WSDD_CHAIN); for (i = 0; i < elements.length; i++) { WSDDChain chain = new WSDDChain(elements[i]); deployHandler(chain); elements = getChildElements(e, ELEM_WSDD_TRANSPORT); for (i = 0; i < elements.length; i++) { WSDDTransport transport = new WSDDTransport(elements[i]); deployTransport(transport); elements = getChildElements(e, ELEM_WSDD_SERVICE); for (i = 0; i < elements.length; i++) { try { WSDDService service = new WSDDService(elements[i]); deployService(service); } catch (WSDDNonFatalException ex) { elements = getChildElements(e, ELEM_WSDD_TYPEMAPPING); for (i = 0; i < elements.length; i++) { try { WSDDTypeMapping mapping = new WSDDTypeMapping(elements[i]);
public void deployToRegistry(WSDDDeployment target) throws ConfigurationException { WSDDGlobalConfiguration global = getGlobalConfiguration(); if (global != null) { target.setGlobalConfiguration(global); } Iterator i = handlers.values().iterator(); while (i.hasNext()) { WSDDHandler handler = (WSDDHandler) i.next(); target.deployHandler(handler); } i = transports.values().iterator(); while (i.hasNext()) { WSDDTransport transport = (WSDDTransport) i.next(); target.deployTransport(transport); } i = services.values().iterator(); while (i.hasNext()) { WSDDService service = (WSDDService) i.next(); service.deployToRegistry(target); } i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); target.deployTypeMapping(mapping); } }
for (int n = 0; n < handlers.size(); n++) { qname = (QName)handlers.get(n); registry.undeployHandler(qname); registry.undeployHandler(qname); registry.undeployTransport(qname); throw new ConfigurationException(exp); registry.undeployService(qname);
public void configureEngine(AxisEngine engine) throws ConfigurationException { this.deployment = new WSDDDeployment(); WSDDGlobalConfiguration config = new WSDDGlobalConfiguration(); config.setOptionsHashtable(new Hashtable()); this.deployment.setGlobalConfiguration(config); File [] dirs = this.dir.listFiles(new DirFilter()); for (int i = 0; i < dirs.length; i++) { processWSDD(dirs[i]); } this.deployment.configureEngine(engine); engine.refreshGlobalOptions(); }
static public void undeployService(QName qname) { getWSDDEngineConfiguration().getDeployment().undeployService(qname); }