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.

Author:
Sanjiva Weerawarana (sanjiva@watson.ibm.com)

Field Summary
protected  java.lang.String configFilename
           
protected  ConfigManager configMgr
           
protected  javax.servlet.ServletContext context
           
protected  DeploymentDescriptor smsdd
           
protected  boolean soapInterfaceEnabled
           
protected  javax.xml.parsers.DocumentBuilder xdb
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configFilename

protected java.lang.String configFilename

smsdd

protected DeploymentDescriptor smsdd

configMgr

protected ConfigManager configMgr

context

protected javax.servlet.ServletContext context

xdb

protected javax.xml.parsers.DocumentBuilder xdb

soapInterfaceEnabled

protected boolean soapInterfaceEnabled
Constructor Detail

ServiceManager

public ServiceManager(javax.servlet.ServletContext context,
                      java.lang.String configFilename)
Method Detail

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


Copyright © 2001 Apache XML Project. All Rights Reserved.