Methods Summary |
---|
public static void | deployHandler(org.apache.axis.deployment.wsdd.WSDDHandler handler)
getWSDDEngineConfiguration().getDeployment().deployHandler(handler);
|
public static void | deployService(org.apache.axis.deployment.wsdd.WSDDService service)
getWSDDEngineConfiguration().getDeployment().deployService(service);
|
public static void | deployTransport(org.apache.axis.deployment.wsdd.WSDDTransport transport)
getWSDDEngineConfiguration().getDeployment().deployTransport(transport);
|
public static org.apache.axis.server.AxisServer | getEngine()Get the singleton engine for this management object
if (axisServer == null) {
//Throw a could not get AxisEngine Exception
throw new AxisFault(
"Unable to locate AxisEngine for ServiceAdmin Object");
}
return axisServer;
|
public static org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration | getGlobalConfig()
return getWSDDEngineConfiguration().getDeployment().getGlobalConfiguration();
|
public static org.apache.axis.deployment.wsdd.WSDDHandler | getHandler(javax.xml.namespace.QName qname)
return getWSDDEngineConfiguration().getDeployment().getWSDDHandler(qname);
|
public static org.apache.axis.deployment.wsdd.WSDDHandler[] | getHandlers()
return getWSDDEngineConfiguration().getDeployment().getHandlers();
|
public static org.apache.axis.deployment.wsdd.WSDDService | getService(javax.xml.namespace.QName qname)
return getWSDDEngineConfiguration().getDeployment().getWSDDService(qname);
|
public static org.apache.axis.deployment.wsdd.WSDDService[] | getServices()
return getWSDDEngineConfiguration().getDeployment().getServices();
|
public static org.apache.axis.deployment.wsdd.WSDDTransport | getTransport(javax.xml.namespace.QName qname)
return getWSDDEngineConfiguration().getDeployment().getWSDDTransport(qname);
|
public static org.apache.axis.deployment.wsdd.WSDDTransport[] | getTransports()
return getWSDDEngineConfiguration().getDeployment().getTransports();
|
private static org.apache.axis.WSDDEngineConfiguration | getWSDDEngineConfiguration()
if (axisServer != null) {
EngineConfiguration config = axisServer.getConfig();
if (config instanceof WSDDEngineConfiguration) {
return (WSDDEngineConfiguration) config;
} else {
throw new RuntimeException("WSDDDeploymentHelper.getWSDDEngineConfiguration(): EngineConguration not of type WSDDEngineConfiguration");
}
}
return null;
|
public static java.lang.String[] | listServices()List all registered services
ArrayList list = new ArrayList();
AxisServer server = getEngine();
Iterator iter; // get list of ServiceDesc objects
try {
iter = server.getConfig().getDeployedServices();
} catch (ConfigurationException configException) {
if (configException.getContainedException() instanceof AxisFault) {
throw (AxisFault) configException.getContainedException();//Throw Axis fault if inst. of
} else {
throw configException;
}
}
while (iter.hasNext()) {
ServiceDesc sd = (ServiceDesc) iter.next();
String name = sd.getName();
list.add(name);
}
return (String[]) list.toArray(new String[list.size()]);
|
public static void | restart()
if (axisServer != null) {
axisServer.stop();
axisServer.start();
}
|
public static void | saveConfiguration()
if (axisServer != null) {
axisServer.saveConfiguration();
}
|
public static void | setEngine(org.apache.axis.server.AxisServer axisSrv, java.lang.String name)Set the singleton engine
ServiceAdmin.axisServer = axisSrv;
Registrar.register(new ServiceAdministrator(), "axis:type=server", "ServiceAdministrator");
Registrar.register(new DeploymentAdministrator(), "axis:type=deploy", "DeploymentAdministrator");
Registrar.register(new DeploymentQuery(), "axis:type=query", "DeploymentQuery");
|
public static void | setGlobalConfig(org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration globalConfig)
getWSDDEngineConfiguration().getDeployment().setGlobalConfiguration(globalConfig);
|
public static void | start()
if (axisServer != null) {
axisServer.start();
}
|
public static void | startService(java.lang.String serviceName)Start the Service
AxisServer server = getEngine();
try {
SOAPService service = server.getConfig().getService(
new QName("", serviceName));
service.start();
} catch (ConfigurationException configException) {
if (configException.getContainedException() instanceof AxisFault) {
throw (AxisFault) configException.getContainedException();
} else {
throw configException;
}
}
|
public static void | stop()
if (axisServer != null) {
axisServer.stop();
}
|
public static void | stopService(java.lang.String serviceName)Stop the Service
AxisServer server = getEngine();
try {
SOAPService service = server.getConfig().getService(
new QName("", serviceName));
service.stop();
} catch (ConfigurationException configException) {
if (configException.getContainedException() instanceof AxisFault) {
throw (AxisFault) configException.getContainedException();//Throw Axis fault if ist. of
} else {
throw configException;
}
}
|
public static void | undeployHandler(javax.xml.namespace.QName qname)
getWSDDEngineConfiguration().getDeployment().undeployHandler(qname);
|
public static void | undeployService(javax.xml.namespace.QName qname)
getWSDDEngineConfiguration().getDeployment().undeployService(qname);
|
public static void | undeployTransport(javax.xml.namespace.QName qname)
getWSDDEngineConfiguration().getDeployment().undeployTransport(qname);
|