public class SimpleHTTPServer extends Object implements org.apache.axis2.transport.TransportListener
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.axis2.context.ConfigurationContext |
configurationContext |
static int |
DEFAULT_PORT |
protected HttpFactory |
httpFactory |
| Constructor and Description |
|---|
SimpleHTTPServer() |
SimpleHTTPServer(org.apache.axis2.context.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() |
org.apache.axis2.context.ConfigurationContext |
getConfigurationContext()
Method getConfigurationContext
|
org.apache.axis2.addressing.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)
|
org.apache.axis2.addressing.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
|
org.apache.axis2.context.SessionContext |
getSessionContext(org.apache.axis2.context.MessageContext messageContext) |
void |
init(org.apache.axis2.context.ConfigurationContext axisConf,
org.apache.axis2.description.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 org.apache.axis2.context.ConfigurationContext configurationContext
protected HttpFactory httpFactory
public SimpleHTTPServer()
public SimpleHTTPServer(org.apache.axis2.context.ConfigurationContext configurationContext,
int port)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic SimpleHTTPServer(HttpFactory httpFactory) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void init(org.apache.axis2.context.ConfigurationContext axisConf,
org.apache.axis2.description.TransportInDescription transprtIn)
throws org.apache.axis2.AxisFault
init in interface org.apache.axis2.transport.TransportListeneraxisConf - transprtIn - org.apache.axis2.AxisFaultpublic static void main(String[] args) throws Exception
args - Exceptionpublic static void printUsage()
public void start()
throws org.apache.axis2.AxisFault
start in interface org.apache.axis2.transport.TransportListenerorg.apache.axis2.AxisFaultpublic void stop()
stop in interface org.apache.axis2.transport.TransportListenerpublic org.apache.axis2.addressing.EndpointReference[] getEPRsForService(String serviceName, String ip) throws org.apache.axis2.AxisFault
getEPRsForService in interface org.apache.axis2.transport.TransportListenerserviceName - ip - org.apache.axis2.AxisFaultorg.apache.axis2.transport.TransportListener#getEPRForService(String,String)public HttpFactory getHttpFactory()
public org.apache.axis2.context.ConfigurationContext getConfigurationContext()
public org.apache.axis2.addressing.EndpointReference getEPRForService(String serviceName, String ip) throws org.apache.axis2.AxisFault
serviceName - ip - org.apache.axis2.AxisFaultorg.apache.axis2.transport.TransportListener#getEPRForService(String,String)public boolean isRunning()
public org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
getSessionContext in interface org.apache.axis2.transport.TransportListenerpublic void destroy()
destroy in interface org.apache.axis2.transport.TransportListenerCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.