Package gaiasky.rest
Class RESTServer
java.lang.Object
gaiasky.rest.RESTServer
REST Server class to implement the REST API
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activate()
Activate.static void
dispose()
Stops the REST server gracefully.static void
initialize(Integer rest_port)
Initialize the REST server.
-
Constructor Details
-
RESTServer
public RESTServer()
-
-
Method Details
-
initialize
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. -
dispose
public static void dispose()Stops the REST server gracefully.
-