org.apache.soap.server
Class ServiceManager
java.lang.Object
|
+--org.apache.soap.server.ServiceManager
- public class ServiceManager
- extends java.lang.Object
A ServiceManager
manages services and their associated
DeploymentDescriptors
.
Constructor Summary |
ServiceManager(javax.servlet.ServletContext context,
java.lang.String configFilename)
|
Method Summary |
void |
deploy(DeploymentDescriptor dd)
Deploy a service: add the descriptor to the persistent record of
what has been deployed. |
java.lang.String[] |
list()
Return an array of all the deployed service names. |
DeploymentDescriptor |
query(java.lang.String id)
Return the deployment descriptor for a service. |
void |
setConfigFilename(java.lang.String configFilename)
|
DeploymentDescriptor |
undeploy(java.lang.String id)
Undeploy a service: remove the descriptor from the persistent record
of what has been deployed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManager
public ServiceManager(javax.servlet.ServletContext context,
java.lang.String configFilename)
setConfigFilename
public void setConfigFilename(java.lang.String configFilename)
deploy
public void deploy(DeploymentDescriptor dd)
throws SOAPException
- Deploy a service: add the descriptor to the persistent record of
what has been deployed.
undeploy
public DeploymentDescriptor undeploy(java.lang.String id)
throws SOAPException
- Undeploy a service: remove the descriptor from the persistent record
of what has been deployed.
- Throws:
SOAPException
- if service is not found
query
public DeploymentDescriptor query(java.lang.String id)
throws SOAPException
- Return the deployment descriptor for a service. If the id identifies
the service management service, then the deployment descriptor of
the service management service is returned.
- Parameters:
id
- the id of the service I'm looking for- Throws:
SOAPException
- if service is not found
list
public java.lang.String[] list()
throws SOAPException
- Return an array of all the deployed service names. Returns an array
of length zero if there are no deployed services.
- Returns:
- array of all service names