public class SimpleJettyHTTPServer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleJettyHTTPServer.Command |
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jetty.server.Server |
webserver |
Constructor and Description |
---|
SimpleJettyHTTPServer(String bindAddress,
int port,
String webappRoot)
Create a new server, bound to the specified IP address (optional), the specified port,
and serving from the specified directory
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
main
|
void |
start()
start webserver
|
void |
stop()
stop webserver
|
public SimpleJettyHTTPServer(String bindAddress, int port, String webappRoot) throws 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 folderIOException
- if problem in bindingTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow