| |
|
| java.lang.Object org.apache.axis2.engine.AxisServer
All known Subclasses: org.apache.axis2.transport.SimpleAxis2Server,
AxisServer | public class AxisServer (Code) | | This class provide a very convenient way of creating server and deploying services.
Once someone call start method it will fire up configuration context and start up the listeners.
One can provide repository location and axis.xml as system properties.
|
AxisServer | public AxisServer(boolean startOnDeploy)(Code) | | If you do not want Axis2 to start the server automatically then pass the "false" else "true"
Parameters: startOnDeploy - : boolean |
AxisServer | public AxisServer()(Code) | | Server will start automatically if you call deployService
|
createDefaultConfigurationContext | protected ConfigurationContext createDefaultConfigurationContext() throws AxisFault(Code) | | Users extending this class can override this method to supply a custom ConfigurationContext
ConfigurationContext throws: AxisFault - |
deployService | public void deployService(String serviceClassName) throws AxisFault(Code) | | Will make Java class into a web service
Parameters: serviceClassName - : Actual class you want to make as a web service throws: AxisFault - : If something went wrong |
getConfigurationContext | public ConfigurationContext getConfigurationContext() throws AxisFault(Code) | | Creates a default configuration context if one is not set already via setConfigurationContext
ConfigurationContext throws: AxisFault - |
setConfigurationContext | public void setConfigurationContext(ConfigurationContext configContext)(Code) | | Set the configuration context. Please call this before you call deployService or start method
Parameters: configContext - ConfigurationContext |
start | protected void start() throws AxisFault(Code) | | Will create a configuration context from the avialable data and then it
will start the listener manager
throws: AxisFault - if something went wrong |
stop | public void stop() throws AxisFault(Code) | | Stop the server, automatically terminates the listener manager as well.
throws: AxisFault - |
|
|
|