|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.utility.SimpleJettyHTTPServer
public class SimpleJettyHTTPServer
Class to make a simple Jetty servlet. Two arguments: port name, and webapps root path. share/images is automatically added as /images.
| Field Summary | |
|---|---|
protected org.mortbay.jetty.Server |
webserver
|
| Constructor Summary | |
|---|---|
SimpleJettyHTTPServer(java.lang.String bindAddress,
int port,
java.lang.String webappRoot)
Create a new server, bound to the specified IP address (optional), the specified port, and serving from the specified directory |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
main |
void |
start()
start webserver |
void |
stop()
stop webserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.mortbay.jetty.Server webserver
| Constructor Detail |
|---|
public SimpleJettyHTTPServer(java.lang.String bindAddress,
int port,
java.lang.String webappRoot)
throws java.io.IOException
bindAddress - - interface to bind to. Will bind to all addresses if null.port - - port to run the Jetty server on.webappRoot - - path location to run the webapps folder
java.io.IOException - if problem in binding| Method Detail |
|---|
public void start()
throws java.lang.Exception
java.lang.Exception
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||