public class SimpleHTTPServer extends Object implements TransportListener
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationContext |
configurationContext |
static int |
DEFAULT_PORT |
protected HttpFactory |
httpFactory |
HOST_ADDRESS, PARAM_PORT| Constructor and Description |
|---|
SimpleHTTPServer() |
SimpleHTTPServer(ConfigurationContext configurationContext,
int port)
Create a SimpleHTTPServer using default HttpFactory settings
|
SimpleHTTPServer(HttpFactory httpFactory)
Create a configured SimpleHTTPServer
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ConfigurationContext |
getConfigurationContext()
Method getConfigurationContext
|
EndpointReference |
getEPRForService(String serviceName,
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(String serviceName,
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) |
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.
|
public static int DEFAULT_PORT
protected ConfigurationContext configurationContext
protected HttpFactory httpFactory
public SimpleHTTPServer()
public SimpleHTTPServer(ConfigurationContext configurationContext, int port) throws AxisFault
AxisFaultpublic SimpleHTTPServer(HttpFactory httpFactory) throws AxisFault
AxisFaultpublic void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init in interface TransportListeneraxisConf - transprtIn - AxisFaultpublic static void main(String[] args) throws Exception
args - Exceptionpublic static void printUsage()
public void start()
throws AxisFault
start in interface TransportListenerAxisFaultpublic void stop()
stop in interface TransportListenerpublic EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
getEPRsForService in interface TransportListenerserviceName - ip - AxisFaultTransportListener.getEPRForService(String,String)public HttpFactory getHttpFactory()
public ConfigurationContext getConfigurationContext()
public EndpointReference getEPRForService(String serviceName, String ip) throws AxisFault
getEPRForService in interface TransportListenerserviceName - ip - AxisFaultTransportListener.getEPRForService(String,String)public boolean isRunning()
public SessionContext getSessionContext(MessageContext messageContext)
getSessionContext in interface TransportListenerpublic void destroy()
destroy in interface TransportListenerCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.