Methods Summary |
---|
public void | configureEngine(org.apache.axis.AxisEngine engine)
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();
|
public java.util.Iterator | getDeployedServices()Get an enumeration of the services deployed to this engine
return this.deployment.getDeployedServices();
|
public org.apache.axis.deployment.wsdd.WSDDDeployment | getDeployment()
return this.deployment;
|
public java.util.Hashtable | getGlobalOptions()Returns the global configuration options.
WSDDGlobalConfiguration globalConfig
= this.deployment.getGlobalConfiguration();
if (globalConfig != null)
return globalConfig.getParametersTable();
return null;
|
public org.apache.axis.Handler | getGlobalRequest()Returns a global request handler.
return this.deployment.getGlobalRequest();
|
public org.apache.axis.Handler | getGlobalResponse()Returns a global response handler.
return this.deployment.getGlobalResponse();
|
public org.apache.axis.Handler | getHandler(javax.xml.namespace.QName qname)retrieve an instance of the named handler
return this.deployment.getHandler(qname);
|
public java.util.List | getRoles()Get a list of roles that this engine plays globally. Services
within the engine configuration may also add additional roles.
return this.deployment.getRoles();
|
public org.apache.axis.handlers.soap.SOAPService | getService(javax.xml.namespace.QName qname)retrieve an instance of the named service
SOAPService service = this.deployment.getService(qname);
if (service == null) {
throw new ConfigurationException(Messages.getMessage("noService10",
qname.toString()));
}
return service;
|
public org.apache.axis.handlers.soap.SOAPService | getServiceByNamespaceURI(java.lang.String namespace)Get a service which has been mapped to a particular namespace
return this.deployment.getServiceByNamespaceURI(namespace);
|
public org.apache.axis.Handler | getTransport(javax.xml.namespace.QName qname)retrieve an instance of the named transport
return this.deployment.getTransport(qname);
|
public org.apache.axis.encoding.TypeMappingRegistry | getTypeMappingRegistry()
return this.deployment.getTypeMappingRegistry();
|
private void | processWSDD(java.io.File dir)
File file = new File(dir, this.configFile);
if (!file.exists()) {
return;
}
log.debug("Loading service configuration from file: " + file);
InputStream in = null;
try {
in = new FileInputStream(file);
WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(in));
doc.deploy(this.deployment);
} catch (Exception e) {
throw new ConfigurationException(e);
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {}
}
}
|
public void | writeEngineConfig(org.apache.axis.AxisEngine engine)Save the engine configuration. In case there's a problem, we
write it to a string before saving it out to the actual file so
we don't screw up the file.
// this is not implemented
|