public class SingleIndexRestServer extends CLITool.CLIParsedCLITool
CLITool.CLIParsedCLITool, CLITool.HelpAliasCLITool, CLITool.HelpCLITool| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
POPULAR_COMMANDS| Constructor and Description |
|---|
SingleIndexRestServer() |
| Modifier and Type | Method and Description |
|---|---|
String |
commandname()
What commandname should this command respond to
|
String |
helpsummary()
Returns a short sentence about what this command is for
|
static void |
main(String[] args)
Main method.
|
int |
run(org.apache.commons.cli.CommandLine line) |
static org.glassfish.grizzly.http.server.HttpServer |
startServer(String uri)
Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.
|
getOptions, help, runcommandaliases, run, run, setConfigurationpublic static final int DEFAULT_PORT
public String commandname()
CLIToolcommandname in class CLIToolpublic String helpsummary()
CLIToolhelpsummary in class CLIToolpublic int run(org.apache.commons.cli.CommandLine line)
throws Exception
run in class CLITool.CLIParsedCLIToolExceptionpublic static org.glassfish.grizzly.http.server.HttpServer startServer(String uri)
public static void main(String[] args) throws Exception
args - IOExceptionExceptionTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow