|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.transport.TransportListener
org.apache.axis2.transport.http.SimpleHTTPServer
This is a simple implementation of an HTTP server for processing SOAP requests via Apache's xml-axis. This is not intended for production use. Its intended uses are for demos, debugging, and performance profiling. Note this classes uses static objects to provide a thread pool, so you should not use multiple instances of this class in the same JVM/classloader unless you want bad things to happen at shutdown.
Field Summary | |
protected ConfigurationContext |
configurationContext
Field systemContext |
protected Log |
log
Field log |
Fields inherited from class org.apache.axis2.transport.TransportListener |
PARAM_PORT |
Constructor Summary | |
SimpleHTTPServer()
Constructor SimpleHTTPServer |
|
SimpleHTTPServer(ConfigurationContext systemContext,
int port)
Constructor SimpleHTTPServer |
|
SimpleHTTPServer(java.lang.String dir,
int port)
Constructor SimpleHTTPServer |
Method Summary | |
protected void |
finalize()
stop the server if not already told to. |
ConfigurationContext |
getSystemContext()
Method getSystemContext |
void |
init(ConfigurationContext axisConf,
TransportInDescription transprtIn)
init method in TransportListener |
boolean |
isRunning()
Checks if this HTTP server instance is running. |
static void |
main(java.lang.String[] args)
Method main |
EndpointReference |
replyToEPR(java.lang.String serviceName)
replyToEPR |
void |
start()
Start this server as a NON-daemon. |
void |
stop()
Stop this server. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Log log
protected ConfigurationContext configurationContext
Constructor Detail |
public SimpleHTTPServer()
public SimpleHTTPServer(ConfigurationContext systemContext, int port) throws java.io.IOException
systemContext
- public SimpleHTTPServer(java.lang.String dir, int port) throws AxisFault
dir
-
AxisFault
Method Detail |
public boolean isRunning()
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void start() throws AxisFault
start
in class TransportListener
AxisFault
public void stop()
stop
in class TransportListener
public ConfigurationContext getSystemContext()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
public EndpointReference replyToEPR(java.lang.String serviceName) throws AxisFault
replyToEPR
in class TransportListener
serviceName
-
AxisFault
TransportListener.replyToEPR(java.lang.String)
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init
in class TransportListener
axisConf
- transprtIn
-
AxisFault
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |