|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.soap.server.BaseConfigManager
An XMLConfigManager
...
The only notable difference is that while the DefaultConfigManager uses java readObject() and writeObject() methods, this class uses the XML routines of DeploymentDescriptor to save and load the DeploymentDescriptors from the underlying registry file (typically DeployedServices.xml).
Field Summary | |
protected javax.servlet.ServletContext |
context
|
protected java.util.Hashtable |
dds
|
protected java.lang.String[] |
serviceNamesCache
|
Constructor Summary | |
BaseConfigManager()
|
Method Summary | |
void |
deploy(DeploymentDescriptor dd)
Used to deploy a service using a specified DeploymentDescriptor. |
void |
init()
The init method loads any services that are defined in the underlying registry file. |
java.lang.String[] |
list()
Returns a list of all currently deployed services. |
abstract void |
loadRegistry()
The loadRegistry() method must be implemented in non-abstract subclasses of BaseConfigManager. |
DeploymentDescriptor |
query(java.lang.String id)
Returns a DeploymentDescriptor from the ConfigManager. |
abstract void |
saveRegistry()
The saveRegistry() method must be implemented in non-abstract subclasses of BaseConfigManager. |
void |
setContext(javax.servlet.ServletContext context)
Sets the Servlet Context. |
DeploymentDescriptor |
undeploy(java.lang.String id)
Undeploy previously deployed services. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.Hashtable dds
protected java.lang.String[] serviceNamesCache
protected javax.servlet.ServletContext context
Constructor Detail |
public BaseConfigManager()
Method Detail |
public void setContext(javax.servlet.ServletContext context)
public void init() throws SOAPException
public void deploy(DeploymentDescriptor dd) throws SOAPException
Note that this method will save the currently deployed services to the underlying registry file, overriding the old configuration.
public DeploymentDescriptor undeploy(java.lang.String id) throws SOAPException
Note that this method will save the currently deployed services to the underlying registry file, overriding the old configuration.
public java.lang.String[] list() throws SOAPException
public DeploymentDescriptor query(java.lang.String id) throws SOAPException
This method will simply return null if there is no descriptor corresponding to the id (should it throw a SOAPException ?).
public abstract void loadRegistry() throws SOAPException
public abstract void saveRegistry() throws SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |