|
|||||||||||
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 |
static int |
DEFAULT_PORT
|
protected static org.apache.commons.logging.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(ConfigurationContext systemContext,
int port,
ThreadFactory pool)
Constructor SimpleHTTPServer |
|
SimpleHTTPServer(String dir,
int port)
Constructor SimpleHTTPServer |
|
SimpleHTTPServer(String dir,
int port,
ThreadFactory pool)
Constructor SimpleHTTPServer |
Method Summary | |
ConfigurationContext |
getConfigurationContext()
Method getConfigurationContext |
EndpointReference |
getReplyToEPR(String serviceName)
replyToEPR |
void |
init(ConfigurationContext axisConf,
TransportInDescription transprtIn)
init method in TransportListener |
boolean |
isRunning()
Checks if this HTTP server instance is running. |
static void |
main(String[] args)
Method main |
static void |
printUsage()
|
void |
start()
Start this server as a NON-daemon. |
void |
stop()
Stop this server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
public static int DEFAULT_PORT
protected ConfigurationContext configurationContext
Constructor Detail |
public SimpleHTTPServer()
public SimpleHTTPServer(ConfigurationContext systemContext, int port)
systemContext
- public SimpleHTTPServer(String dir, int port) throws AxisFault
dir
-
AxisFault
public SimpleHTTPServer(ConfigurationContext systemContext, int port, ThreadFactory pool)
systemContext
- pool
- public SimpleHTTPServer(String dir, int port, ThreadFactory pool) throws AxisFault
dir
- pool
-
AxisFault
Method Detail |
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init
in class TransportListener
axisConf
- transprtIn
-
AxisFault
public static void main(String[] args) throws Exception
args
-
Exception
public static void printUsage()
public void start() throws AxisFault
start
in class TransportListener
AxisFault
public void stop()
stop
in class TransportListener
public ConfigurationContext getConfigurationContext()
public EndpointReference getReplyToEPR(String serviceName) throws AxisFault
getReplyToEPR
in class TransportListener
serviceName
-
AxisFault
TransportListener.getReplyToEPR(String)
public boolean isRunning()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |