|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.engine.AxisServer
public class AxisServer
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.
Field Summary | |
---|---|
protected ConfigurationContext |
configContext
|
protected ListenerManager |
listenerManager
|
Constructor Summary | |
---|---|
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" |
Method Summary | |
---|---|
protected ConfigurationContext |
createDefaultConfigurationContext()
Users extending this class can override this method to supply a custom ConfigurationContext |
void |
deployService(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConfigurationContext configContext
protected ListenerManager listenerManager
Constructor Detail |
---|
public AxisServer(boolean startOnDeploy)
startOnDeploy
- : booleanpublic AxisServer()
Method Detail |
---|
public void deployService(java.lang.String serviceClassName) throws AxisFault
serviceClassName
- : Actual class you want to make as a web service
AxisFault
- : 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |