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)
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(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
AxisFault
public SimpleHTTPServer(HttpFactory httpFactory) throws AxisFault
AxisFault
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init
in interface 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 interface TransportListener
AxisFault
public void stop()
stop
in interface TransportListener
public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
getEPRsForService
in interface TransportListener
serviceName
- ip
- AxisFault
TransportListener.getEPRForService(String,String)
public HttpFactory getHttpFactory()
public ConfigurationContext getConfigurationContext()
public EndpointReference getEPRForService(String serviceName, 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 datapublic void destroy()
destroy
in interface TransportListener
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.