Package org.cristalise.restapi
Class Main
java.lang.Object
org.cristalise.kernel.process.AbstractMain
org.cristalise.kernel.process.StandardClient
org.cristalise.restapi.Main
Main class to launch the Test Restapi server. It is based on grizzly HTTP server.
-
Field Summary
Fields inherited from class org.cristalise.kernel.process.StandardClient
agentFields inherited from class org.cristalise.kernel.process.AbstractMain
isServer, MAIN_ARG_CONFIG, MAIN_ARG_CONNECT, MAIN_ARG_SKIPBOOTSTRAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidVery basic main method to Start HTTP server and initialise CRISTAL-iSE connection.static voidstartServer(String[] args) Initialise standard CRISTAL-iSE client process.Methods inherited from class org.cristalise.kernel.process.StandardClient
createClientVerticles, getRequiredStateMachine, login, standardInitialisation, standardInitialisationMethods inherited from class org.cristalise.kernel.process.AbstractMain
readC2KArgs, readPropertyFiles, setShutdownHandler, shutdown
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
startServer
Initialise standard CRISTAL-iSE client process. Creates ResourceConfig that scans for JAX-RS resources and providers in 'org.cristalise.restapi' package Creates Grizzly HTTP server exposing the Jersey application at the given URI.- Throws:
Exception
-
main
Very basic main method to Start HTTP server and initialise CRISTAL-iSE connection.- Parameters:
args- input parameters
-