|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.transport.http.SimpleHTTPServer
public class SimpleHTTPServer
This is a simple implementation of an HTTP server for processing SOAP requests via Apache's xml-axis2. It can be used with no configuration other than the port to listen on, or it can be configured in detail with an HttpFactory.
Field Summary | |
---|---|
protected ConfigurationContext |
configurationContext
|
static int |
DEFAULT_PORT
|
protected HttpFactory |
httpFactory
|
Fields inherited from interface org.apache.axis2.transport.TransportListener |
---|
HOST_ADDRESS, PARAM_PORT |
Constructor Summary | |
---|---|
SimpleHTTPServer()
|
|
SimpleHTTPServer(ConfigurationContext configurationContext,
int port)
Create a SimpleHTTPServer using default HttpFactory settings |
|
SimpleHTTPServer(HttpFactory httpFactory)
Create a configured SimpleHTTPServer |
Method Summary | |
---|---|
void |
destroy()
|
ConfigurationContext |
getConfigurationContext()
Method getConfigurationContext |
EndpointReference |
getEPRForService(java.lang.String serviceName,
java.lang.String ip)
replyToEPR If the user has given host address paramter then it gets the high priority and ERP will be creatd using that N:B - hostAddress should be a complte url (http://www.myApp.com/ws) |
EndpointReference[] |
getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
replyToEPR If the user has given host address paramter then it gets the high priority and ERP will be creatd using that N:B - hostAddress should be a complete url (http://www.myApp.com/ws) |
HttpFactory |
getHttpFactory()
Getter for httpFactory |
SessionContext |
getSessionContext(MessageContext messageContext)
To get the sessionContext transport dependent manner. |
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 |
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 |
---|
public static int DEFAULT_PORT
protected ConfigurationContext configurationContext
protected HttpFactory httpFactory
Constructor Detail |
---|
public SimpleHTTPServer()
public SimpleHTTPServer(ConfigurationContext configurationContext, int port) throws AxisFault
AxisFault
public SimpleHTTPServer(HttpFactory httpFactory) throws AxisFault
AxisFault
Method Detail |
---|
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init
in interface TransportListener
axisConf
- transprtIn
-
AxisFault
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
public static void printUsage()
public void start() throws AxisFault
start
in interface TransportListener
AxisFault
public void stop()
stop
in interface TransportListener
public EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRsForService
in interface TransportListener
serviceName
- ip
-
AxisFault
TransportListener.getEPRForService(String,String)
public HttpFactory getHttpFactory()
public ConfigurationContext getConfigurationContext()
public EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRForService
in interface TransportListener
serviceName
- ip
-
AxisFault
TransportListener.getEPRForService(String,String)
public boolean isRunning()
public SessionContext getSessionContext(MessageContext messageContext)
TransportListener
getSessionContext
in interface TransportListener
messageContext
- : MessageContext which has all the relavent data
public void destroy()
destroy
in interface TransportListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |