org.jboss.axis.client
Class AdminClient

java.lang.Object
  extended byorg.jboss.axis.client.AdminClient

public class AdminClient
extends java.lang.Object

An admin client object that can be used both from the command line and programmatically.


Field Summary
protected  Call (src) call
           
protected static java.lang.String ROOT_UNDEPLOY
           
 
Constructor Summary
AdminClient()
          Construct an admin client w/o a logger
 
Method Summary
 Call (src) getCall()
          External access to our Call object
 java.lang.String list()
           
 java.lang.String list(Options (src)  opts)
           
static void main(java.lang.String[] args)
          Creates in instance of AdminClient and invokes process(args).
 java.lang.String process(java.io.InputStream input)
           
 java.lang.String process(Options (src)  opts, java.io.InputStream input)
           
 java.lang.String process(Options (src)  opts, java.lang.String xmlFile)
           
 java.lang.String process(java.lang.String xmlFile)
           
 java.lang.String process(java.lang.String[] args)
          Processes a set of administration commands.
 java.lang.String process(java.net.URL xmlURL)
           
 void processOpts(Options (src)  opts)
           
 java.lang.String quit()
           
 java.lang.String quit(Options (src)  opts)
           
 java.lang.String undeployHandler(java.lang.String handlerName)
           
 java.lang.String undeployService(java.lang.String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

call

protected Call (src)  call

ROOT_UNDEPLOY

protected static final java.lang.String ROOT_UNDEPLOY
Constructor Detail

AdminClient

public AdminClient()
Construct an admin client w/o a logger

Method Detail

getCall

public Call (src)  getCall()
External access to our Call object


list

public java.lang.String list(Options (src)  opts)
                      throws java.lang.Exception
Throws:
java.lang.Exception

list

public java.lang.String list()
                      throws java.lang.Exception
Throws:
java.lang.Exception

quit

public java.lang.String quit(Options (src)  opts)
                      throws java.lang.Exception
Throws:
java.lang.Exception

quit

public java.lang.String quit()
                      throws java.lang.Exception
Throws:
java.lang.Exception

undeployHandler

public java.lang.String undeployHandler(java.lang.String handlerName)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

undeployService

public java.lang.String undeployService(java.lang.String serviceName)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(java.lang.String[] args)
                         throws java.lang.Exception

Processes a set of administration commands.

The following commands are available:

If -l or -h -p -s are not set, the AdminClient will invoke http://localhost:8080/axis/servlet/AxisServlet.

Parameters:
args - Commands to process
Returns:
XML result or null in case of failure. In the case of multiple commands, the XML results will be concatenated, separated by \n
Throws:
java.lang.Exception - Could be an IO exception, an AxisFault or something else

processOpts

public void processOpts(Options (src)  opts)
                 throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(java.io.InputStream input)
                         throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(java.net.URL xmlURL)
                         throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(java.lang.String xmlFile)
                         throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(Options (src)  opts,
                                java.lang.String xmlFile)
                         throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.lang.String process(Options (src)  opts,
                                java.io.InputStream input)
                         throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Creates in instance of AdminClient and invokes process(args).

Diagnostic output goes to log.info.

Parameters:
args - Commands to process