Class SingleIndexRestServer


  • public class SingleIndexRestServer
    extends CLITool.CLIParsedCLITool
    Loads the default index and exports via a REST service at http://localhost:8080/
    • Constructor Detail

      • SingleIndexRestServer

        public SingleIndexRestServer()
    • Method Detail

      • commandname

        public java.lang.String commandname()
        Description copied from class: CLITool
        What commandname should this command respond to
        Overrides:
        commandname in class CLITool
      • sourcepackage

        public java.lang.String sourcepackage()
        Overrides:
        sourcepackage in class CLITool
      • helpsummary

        public java.lang.String helpsummary()
        Description copied from class: CLITool
        Returns a short sentence about what this command is for
        Overrides:
        helpsummary in class CLITool
      • run

        public int run​(org.apache.commons.cli.CommandLine line)
                throws java.lang.Exception
        Specified by:
        run in class CLITool.CLIParsedCLITool
        Throws:
        java.lang.Exception
      • startServer

        public static org.glassfish.grizzly.http.server.HttpServer startServer​(java.lang.String uri)
        Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.
        Returns:
        Grizzly HTTP server.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main method.
        Parameters:
        args -
        Throws:
        java.io.IOException
        java.lang.Exception