org.apache.axis.client
public class AdminClient extends Object
Field Summary | |
---|---|
protected Call | call
the object that represents our call |
protected static Log | log |
protected static String | ROOT_UNDEPLOY
root element of the undeploy request |
Constructor Summary | |
---|---|
AdminClient()
Construct an admin client w/o a logger.
| |
AdminClient(boolean ignored)
this is a somwhat contrived variant constructor, one that throws an exception
if things go wrong. |
Method Summary | |
---|---|
Call | getCall()
External access to our Call |
String | list(Options opts)
process the options then run a list call |
String | list()
send a list command |
static void | main(String[] args)
Creates in instance of AdminClient and
invokes process(args) .
|
String | process(String[] args) Processes a set of administration commands. The following commands are available:
|
String | process(InputStream input) |
String | process(URL xmlURL) |
String | process(String xmlFile)
process an XML file containing a pre-prepared admin message |
String | process(Options opts, String xmlFile) |
String | process(Options opts, InputStream input)
submit the input stream's contents to the endpoint, return the results as a string.
|
void | processOpts(Options opts)
go from the (parsed) command line to setting properties on our call object. |
String | quit(Options opts)
process the command line ops, then send a quit command |
String | quit()
make a quit command |
static void | setDefaultConfiguration(EngineConfiguration config)
If the user calls this with an EngineConfiguration object, all
AdminClients on this thread will use that EngineConfiguration
rather than the default one. |
void | setLogin(String user, String password)
set the username and password
requires that call! |
void | setTargetEndpointAddress(URL address)
set the URL to deploy to
requires that call! |
void | setTransport(String transportName)
set the transport to deploy with.
requires that call! |
String | undeployHandler(String handlerName)
undeploy a handler |
String | undeployService(String serviceName)
undeploy a service |
Parameters: ignored
Call
Returns: the Call
object this instance uses
Parameters: opts
Returns:
Throws: Exception
Returns: the response from the call
Throws: Exception
AdminClient
and
invokes process(args)
.
Diagnostic output goes to log.info
.
Parameters: args Commands to process
Processes a set of administration commands.
The following commands are available:
-lurl
sets the AxisServlet URL-hhostName
sets the AxisServlet host-pportNumber
sets the AxisServlet port-sservletPath
sets the path to the
AxisServlet-ffileName
specifies that a simple file
protocol should be used-uusername
sets the username-wpassword
sets the password-d
sets the debug flag (for instance, -ddd would
set it to 3)-tname
sets the transport chain touselist
will list the currently deployed servicesquit
will quit (???)passwd value
changes the admin passwordxmlConfigFile
deploys or undeploys
Axis components and web servicesIf -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: Exception Could be an IO exception, an AxisFault or something else
Parameters: xmlFile file to load
Returns:
Throws: Exception
Parameters: opts options -can be null input -input stream for request
Returns:
Throws: Exception if the call was null AxisFault if the invocation returned an empty response
Parameters: opts
Throws: Exception if call==null
Parameters: opts
Returns:
Throws: Exception
Returns:
Throws: Exception
Parameters: config the EngineConfiguration which should be used
Parameters: user username password password
Parameters: address
Parameters: transportName a null or empty value does not trigger a setting
Parameters: handlerName name of the handler to undeploy
Returns:
Throws: Exception
Parameters: serviceName name of service
Returns:
Throws: Exception