public class AxisServer extends Object
Modifier and Type | Field and Description |
---|---|
protected ConfigurationContext |
configContext |
protected ListenerManager |
listenerManager |
Constructor and Description |
---|
AxisServer()
Server will start automatically if you call deployService
|
AxisServer(boolean startOnDeploy)
If you do not want Axis2 to start the server automatically then pass the "false" else "true"
|
Modifier and Type | Method and Description |
---|---|
protected ConfigurationContext |
createDefaultConfigurationContext()
Users extending this class can override this method to supply a custom ConfigurationContext
|
void |
deployService(String serviceClassName)
Will make Java class into a web service
|
ConfigurationContext |
getConfigurationContext()
Creates a default configuration context if one is not set already via setConfigurationContext
|
void |
setConfigurationContext(ConfigurationContext configContext)
Set the configuration context.
|
protected void |
start()
Will create a configuration context from the avialable data and then it
will start the listener manager
|
void |
stop()
Stop the server, automatically terminates the listener manager as well.
|
protected ConfigurationContext configContext
protected ListenerManager listenerManager
public AxisServer(boolean startOnDeploy)
startOnDeploy
- : booleanpublic AxisServer()
public void deployService(String serviceClassName) throws AxisFault
serviceClassName
- : Actual class you want to make as a web serviceAxisFault
- : If something went wrongprotected void start() throws AxisFault
AxisFault
- if something went wrongpublic void stop() throws AxisFault
AxisFault
public void setConfigurationContext(ConfigurationContext configContext)
configContext
- ConfigurationContextpublic ConfigurationContext getConfigurationContext() throws AxisFault
AxisFault
protected ConfigurationContext createDefaultConfigurationContext() throws AxisFault
AxisFault
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.