Class RESTServer


  • public class RESTServer
    extends java.lang.Object
    REST Server class to implement the REST API
    • Constructor Summary

      Constructors 
      Constructor Description
      RESTServer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void activate()
      Activate.
      static void initialize​(java.lang.Integer rest_port)
      Initialize the REST server.
      static void stop()
      Stops the REST server gracefully.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RESTServer

        public RESTServer()
    • Method Detail

      • initialize

        public static void initialize​(java.lang.Integer rest_port)
        Initialize the REST server. Sets the routes and then passes the call to the handler.
        Parameters:
        rest_port - The port to use for the REST server
      • activate

        public static void activate()
        Activate. Set the "activated" flag for the server.
      • stop

        public static void stop()
        Stops the REST server gracefully.