org.apache.axis.utils
Class Admin

java.lang.Object
  |
  +--org.apache.axis.utils.Admin

public class Admin
extends java.lang.Object

Handy static utility functions for turning XML into Axis deployment operations.

Author:
Doug Davis (dug@us.ibm.com), Glen Daniels (gdaniels@macromedia.com)

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
Admin()
           
 
Method Summary
 org.w3c.dom.Element[] AdminService(java.util.Vector xml)
          Process a given XML document - needs cleanup.
static org.w3c.dom.Document listConfig(AxisEngine engine)
          Get an XML document representing this engine's configuration.
static void main(java.lang.String[] args)
           
 org.w3c.dom.Document process(MessageContext msgContext, org.w3c.dom.Element root)
          The meat of the Admin service.
protected static org.w3c.dom.Document processWSDD(MessageContext msgContext, AxisEngine engine, org.w3c.dom.Element root)
           
static void registerChain(org.w3c.dom.Element elem, WSDDDeployment deployment)
          Deploy a chain described in XML into an AxisEngine.
static void registerHandler(org.w3c.dom.Element elem, WSDDDeployment deployment)
          Deploy a handler described in XML into an AxisEngine.
static void registerService(org.w3c.dom.Element elem, WSDDDeployment deployment, boolean isServer)
          Deploy a service described in XML into an AxisEngine.
static void registerTransport(org.w3c.dom.Element elem, WSDDDeployment deployment)
          Deploy a transport described in XML into an AxisEngine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

Admin

public Admin()
Method Detail

AdminService

public org.w3c.dom.Element[] AdminService(java.util.Vector xml)
                                   throws java.lang.Exception
Process a given XML document - needs cleanup.

processWSDD

protected static org.w3c.dom.Document processWSDD(MessageContext msgContext,
                                                  AxisEngine engine,
                                                  org.w3c.dom.Element root)
                                           throws java.lang.Exception

process

public org.w3c.dom.Document process(MessageContext msgContext,
                                    org.w3c.dom.Element root)
                             throws java.lang.Exception
The meat of the Admin service. Process an xML document rooted with a "deploy", "undeploy", "list", or "quit" element.
Parameters:
msgContext - the MessageContext we're processing
root - the root Element of the XML
Returns:
an XML Document indicating the results.

listConfig

public static org.w3c.dom.Document listConfig(AxisEngine engine)
                                       throws AxisFault
Get an XML document representing this engine's configuration. This document is suitable for saving and reloading into the engine.
Parameters:
engine - the AxisEngine to work with
Returns:
an XML document holding the engine config
Throws:
AxisFault -  

registerChain

public static void registerChain(org.w3c.dom.Element elem,
                                 WSDDDeployment deployment)
                          throws java.lang.Exception
Deploy a chain described in XML into an AxisEngine.
Parameters:
elem - the element
engine - the AxisEngine in which to deploy

registerService

public static void registerService(org.w3c.dom.Element elem,
                                   WSDDDeployment deployment,
                                   boolean isServer)
                            throws java.lang.Exception
Deploy a service described in XML into an AxisEngine.
Parameters:
elem - the element
engine - the AxisEngine in which to deploy

registerHandler

public static void registerHandler(org.w3c.dom.Element elem,
                                   WSDDDeployment deployment)
                            throws java.lang.Exception
Deploy a handler described in XML into an AxisEngine.
Parameters:
elem - the element

registerTransport

public static void registerTransport(org.w3c.dom.Element elem,
                                     WSDDDeployment deployment)
                              throws java.lang.Exception
Deploy a transport described in XML into an AxisEngine.
Parameters:
elem - the element

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception


Copyright © 2001 Apache XML Project. All Rights Reserved.