Class BasicVitamServer

  • All Implemented Interfaces:
    VitamServer, VitamServerInterface

    public class BasicVitamServer
    extends java.lang.Object
    implements VitamServer
    Basic implementation of a vitam server using embedded jetty as underlying app server
    • Constructor Detail

      • BasicVitamServer

        protected BasicVitamServer​(int port,
                                   boolean withConnector)
      • BasicVitamServer

        protected BasicVitamServer​(int port)
        A Vitam server can only be instantiated with a given port to listen to
        Parameters:
        port - the port to listen to (must be a valid logical port number)
        Throws:
        java.lang.IllegalArgumentException - if port <= 0
      • BasicVitamServer

        protected BasicVitamServer​(java.lang.String jettyConfigPath)
                            throws VitamApplicationServerException
        A Vitam server can be instantiated with a jetty xml configuration file. This configuration file can be in : - /vitam/conf, - resource folder - resource in classpath
        Parameters:
        jettyConfigPath - configuration file of jetty server
        Throws:
        VitamApplicationServerException - if configuration not found, can't be parsed, can't be read or server can't started