|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis.client.AdminClient
public class AdminClient
An admin client object that can be used both from the command line and programmatically.
| Field Summary | |
|---|---|
protected Call |
call
the object that represents our call |
protected static org.apache.commons.logging.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()
send a list command |
String |
list(Options opts)
process the options then run a list call |
static void |
main(String[] args)
Creates in instance of AdminClient and
invokes process(args). |
String |
process(InputStream input)
|
String |
process(Options opts,
InputStream input)
submit the input stream's contents to the endpoint, return the results as a string. |
String |
process(Options opts,
String xmlFile)
|
String |
process(String xmlFile)
process an XML file containing a pre-prepared admin message |
String |
process(String[] args)
Processes a set of administration commands. |
String |
process(URL xmlURL)
|
void |
processOpts(Options opts)
go from the (parsed) command line to setting properties on our call object. |
String |
quit()
make a quit command |
String |
quit(Options opts)
process the command line ops, then send 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. |
String |
undeployHandler(String handlerName)
undeploy a handler |
String |
undeployService(String serviceName)
undeploy a service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected Call call
protected static final String ROOT_UNDEPLOY
| Constructor Detail |
|---|
public AdminClient()
System.err.
This is for 'historical reasons'
public AdminClient(boolean ignored)
throws ServiceException
ignored -
ServiceException| Method Detail |
|---|
public static void setDefaultConfiguration(EngineConfiguration config)
config - the EngineConfiguration which should be usedpublic Call getCall()
Call
Call object this instance uses
public String list(Options opts)
throws Exception
opts -
Exception
public String list()
throws Exception
Exception
public String quit(Options opts)
throws Exception
opts -
Exception
public String quit()
throws Exception
Exception
public String undeployHandler(String handlerName)
throws Exception
handlerName - name of the handler to undeploy
Exception
public String undeployService(String serviceName)
throws Exception
serviceName - name of service
Exception
public String process(String[] args)
throws Exception
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.
args - Commands to process
Exception - Could be an IO exception, an AxisFault or something else
public void processOpts(Options opts)
throws Exception
opts -
Exception - if call==null
public void setLogin(String user,
String password)
user - usernamepassword - passwordpublic void setTargetEndpointAddress(URL address)
address - public void setTransport(String transportName)
transportName - a null or empty value does not trigger a setting
public String process(InputStream input)
throws Exception
Exception
public String process(URL xmlURL)
throws Exception
Exception
public String process(String xmlFile)
throws Exception
xmlFile - file to load
Exception
public String process(Options opts,
String xmlFile)
throws Exception
Exception
public String process(Options opts,
InputStream input)
throws Exception
opts - options -can be nullinput - -input stream for request
Exception - if the call was null
AxisFault - if the invocation returned an empty responsepublic static void main(String[] args)
AdminClient and
invokes process(args).
Diagnostic output goes to log.info.
args - Commands to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||