|
|||||||||
| Home >> All >> org >> apache >> axis >> [ client overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.axis.client
Class AdminClient

java.lang.Objectorg.apache.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 |
call
the object that represents our call |
private static java.lang.ThreadLocal |
defaultConfiguration
|
protected static org.apache.commons.logging.Log |
log
|
protected static java.lang.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
|
private static java.lang.String |
getUsageInfo()
|
private void |
initAdminClient()
core initialisation routine |
java.lang.String |
list()
send a list command |
java.lang.String |
list(org.apache.axis.utils.Options opts)
process the options then run a list call |
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(org.apache.axis.utils.Options opts,
java.io.InputStream input)
submit the input stream's contents to the endpoint, return the results as a string. |
java.lang.String |
process(org.apache.axis.utils.Options opts,
java.lang.String xmlFile)
|
java.lang.String |
process(java.lang.String xmlFile)
process an XML file containing a pre-prepared admin message |
java.lang.String |
process(java.lang.String[] args)
Processes a set of administration commands. |
java.lang.String |
process(java.net.URL xmlURL)
|
void |
processOpts(org.apache.axis.utils.Options opts)
go from the (parsed) command line to setting properties on our call object. |
java.lang.String |
quit()
make a quit command |
java.lang.String |
quit(org.apache.axis.utils.Options opts)
process the command line ops, then send a quit command |
static void |
setDefaultConfiguration(org.apache.axis.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(java.lang.String user,
java.lang.String password)
set the username and password requires that call!=null |
void |
setTargetEndpointAddress(java.net.URL address)
set the URL to deploy to requires that call!=null |
void |
setTransport(java.lang.String transportName)
set the transport to deploy with. |
java.lang.String |
undeployHandler(java.lang.String handlerName)
undeploy a handler |
java.lang.String |
undeployService(java.lang.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 |
log
protected static org.apache.commons.logging.Log log
defaultConfiguration
private static java.lang.ThreadLocal defaultConfiguration
call
protected Call call
- the object that represents our call
ROOT_UNDEPLOY
protected static final java.lang.String ROOT_UNDEPLOY
- root element of the undeploy request
| Constructor Detail |
AdminClient
public AdminClient()
- Construct an admin client w/o a logger.
If the client cannot create a call object, then it does not throw an exception.
Instead it prints a message to
System.err. This is for 'historical reasons'
AdminClient
public AdminClient(boolean ignored)
throws javax.xml.rpc.ServiceException
- this is a somwhat contrived variant constructor, one that throws an exception
if things go wrong.
| Method Detail |
setDefaultConfiguration
public static void setDefaultConfiguration(org.apache.axis.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. This is primarily to enable the
deployment of custom transports and handlers.
getUsageInfo
private static java.lang.String getUsageInfo()
initAdminClient
private void initAdminClient()
throws javax.xml.rpc.ServiceException
- core initialisation routine
getCall
public Call getCall()
- External access to our
Call
list
public java.lang.String list(org.apache.axis.utils.Options opts) throws java.lang.Exception
- process the options then run a list call
list
public java.lang.String list() throws java.lang.Exception
- send a list command
quit
public java.lang.String quit(org.apache.axis.utils.Options opts) throws java.lang.Exception
- process the command line ops, then send a quit command
quit
public java.lang.String quit() throws java.lang.Exception
- make a quit command
undeployHandler
public java.lang.String undeployHandler(java.lang.String handlerName) throws java.lang.Exception
- undeploy a handler
undeployService
public java.lang.String undeployService(java.lang.String serviceName) throws java.lang.Exception
- undeploy a service
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:
-lurlsets the AxisServlet URL-hhostNamesets the AxisServlet host-pportNumbersets the AxisServlet port-sservletPathsets the path to the AxisServlet-ffileNamespecifies that a simple file protocol should be used-uusernamesets the username-wpasswordsets the password-dsets the debug flag (for instance, -ddd would set it to 3)-tnamesets the transport chain touselistwill list the currently deployed servicesquitwill quit (???)passwd valuechanges the admin passwordxmlConfigFiledeploys or undeploys Axis components and web services
If
-lor-h -p -sare not set, the AdminClient will invokehttp://localhost:8080/axis/servlet/AxisServlet.
processOpts
public void processOpts(org.apache.axis.utils.Options opts) throws java.lang.Exception
- go from the (parsed) command line to setting properties on our call object.
setLogin
public void setLogin(java.lang.String user, java.lang.String password)
- set the username and password
requires that call!=null
setTargetEndpointAddress
public void setTargetEndpointAddress(java.net.URL address)
- set the URL to deploy to
requires that call!=null
setTransport
public void setTransport(java.lang.String transportName)
- set the transport to deploy with.
requires that call!=null
process
public java.lang.String process(java.io.InputStream input) throws java.lang.Exception
process
public java.lang.String process(java.net.URL xmlURL) throws java.lang.Exception
process
public java.lang.String process(java.lang.String xmlFile) throws java.lang.Exception
- process an XML file containing a pre-prepared admin message
process
public java.lang.String process(org.apache.axis.utils.Options opts, java.lang.String xmlFile) throws java.lang.Exception
process
public java.lang.String process(org.apache.axis.utils.Options opts, java.io.InputStream input) throws java.lang.Exception
- submit the input stream's contents to the endpoint, return the results as a string.
The input stream is always closed after the call, whether the request worked or not
main
public static void main(java.lang.String[] args)
- Creates in instance of
AdminClientand invokesprocess(args).Diagnostic output goes to
log.info.
|
|||||||||
| Home >> All >> org >> apache >> axis >> [ client overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.axis.client.AdminClient