public class HttpServer extends Object
| Constructor and Description |
|---|
HttpServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServlet(javax.servlet.http.HttpServlet servlet,
String ctxRoot) |
int |
getPort() |
protected org.mortbay.jetty.Server |
getServer() |
boolean |
isStarted() |
boolean |
isStopped() |
void |
join() |
String |
start() |
String |
stop()
stops the server.
|
public HttpServer(int port)
port - the server port where clients need to connec to.protected org.mortbay.jetty.Server getServer()
public String stop()
public int getPort()
public String start()
public boolean isStarted()
public boolean isStopped()
public void join()
public void addServlet(javax.servlet.http.HttpServlet servlet,
String ctxRoot)
Copyright © 2017 smartrics. All Rights Reserved.