Class SimpleHttpServer
- java.lang.Object
-
- org.apache.axis2.transport.http.server.SimpleHttpServer
-
public class SimpleHttpServer extends Object
A simple, but configurable and extensible HTTP server.
-
-
Constructor Summary
Constructors Constructor Description SimpleHttpServer(ConfigurationContext configurationContext, WorkerFactory workerFactory, int port)SimpleHttpServer(HttpFactory httpFactory, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()intgetPort()voidinit()booleanisRunning()voidstart()
-
-
-
Constructor Detail
-
SimpleHttpServer
public SimpleHttpServer(ConfigurationContext configurationContext, WorkerFactory workerFactory, int port) throws IOException
- Throws:
IOException
-
SimpleHttpServer
public SimpleHttpServer(HttpFactory httpFactory, int port) throws IOException
- Throws:
IOException
-
-
Method Detail
-
init
public void init() throws IOException- Throws:
IOException
-
destroy
public void destroy() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
start
public void start()
-
isRunning
public boolean isRunning()
-
getPort
public int getPort()
-
-