|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.client.AdminClient
An admin client object that can be used both from the command line and programmatically.
Field Summary | |
protected Call |
call
|
protected static org.apache.commons.logging.Log |
log
|
protected static java.lang.String |
ROOT_UNDEPLOY
|
Constructor Summary | |
AdminClient()
Construct an admin client w/o a logger |
Method Summary | |
Call |
getCall()
External access to our Call object |
java.lang.String |
list()
|
java.lang.String |
list(Options 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 opts,
java.io.InputStream input)
|
java.lang.String |
process(Options 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 opts)
|
java.lang.String |
quit()
|
java.lang.String |
quit(Options opts)
|
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. |
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 |
protected static org.apache.commons.logging.Log log
protected Call call
protected static final java.lang.String ROOT_UNDEPLOY
Constructor Detail |
public AdminClient()
Method Detail |
public static void setDefaultConfiguration(EngineConfiguration config)
config
- the EngineConfiguration which should be usedpublic Call getCall()
public java.lang.String list(Options opts) throws java.lang.Exception
java.lang.Exception
public java.lang.String list() throws java.lang.Exception
java.lang.Exception
public java.lang.String quit(Options opts) throws java.lang.Exception
java.lang.Exception
public java.lang.String quit() throws java.lang.Exception
java.lang.Exception
public java.lang.String undeployHandler(java.lang.String handlerName) throws java.lang.Exception
java.lang.Exception
public java.lang.String undeployService(java.lang.String serviceName) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(java.lang.String[] args) throws java.lang.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
java.lang.Exception
- Could be an IO exception, an AxisFault or something elsepublic void processOpts(Options opts) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(java.io.InputStream input) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(java.net.URL xmlURL) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(java.lang.String xmlFile) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(Options opts, java.lang.String xmlFile) throws java.lang.Exception
java.lang.Exception
public java.lang.String process(Options opts, java.io.InputStream input) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.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 |