@Test public final void testNewVitamServerFromJettyConfig() { try { final VitamServer server = VitamServerFactory.newVitamServerByJettyConf(JETTY_CONFIG_TEST); final Server jettyServer = server.getServer(); jettyServer.start(); Assert.assertTrue(jettyServer.isStarted()); if (jettyServer != null && jettyServer.isStarted()) { jettyServer.stop(); } Assert.assertTrue(jettyServer.isStopped()); } catch (final Exception e) { LOGGER.error(e.getMessage(), e); } }
public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile) throws VitamApplicationServerException { try { ParametersChecker.checkParameter("jetty config file", jettyConfigFile); return new BasicVitamServer(jettyConfigFile); } catch (final IllegalArgumentException e) { LOGGER.error( "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(), e); throw new VitamApplicationServerException( "Jetty server can not run with this jetty config file : " + jettyConfigFile); } }
VitamServerFactory { public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile) throws VitamApplicationServerException { try { ParametersChecker.checkParameter("jetty config file", jettyConfigFile); return new BasicVitamServer(jettyConfigFile); } catch (final IllegalArgumentException e) { LOGGER.error( "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(), e); throw new VitamApplicationServerException( "Jetty server can not run with this jetty config file : " + jettyConfigFile); } } }
VitamServerFactory { public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile) throws VitamApplicationServerException { try { ParametersChecker.checkParameter("jetty config file", jettyConfigFile); return new BasicVitamServer(jettyConfigFile); } catch (final IllegalArgumentException e) { LOGGER.error( "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(), e); throw new VitamApplicationServerException( "Jetty server can not run with this jetty config file : " + jettyConfigFile); } } private  VitamServerFactory(); }
VitamServerFactory { public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile) throws VitamApplicationServerException { try { ParametersChecker.checkParameter("jetty config file", jettyConfigFile); return new BasicVitamServer(jettyConfigFile); } catch (final IllegalArgumentException e) { LOGGER.error( "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(), e); throw new VitamApplicationServerException( "Jetty server can not run with this jetty config file : " + jettyConfigFile); } } private  VitamServerFactory(); static VitamServer newVitamServerOnDefaultPort(); static void setDefaultPort(int port); static int getDefaultPort(); static VitamServer newVitamServer(int port); static VitamServer newVitamServerWithoutConnector(int port); static VitamServer newVitamServerByJettyConf(final String jettyConfigFile); }
VitamServerFactory { public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile) throws VitamApplicationServerException { try { ParametersChecker.checkParameter("jetty config file", jettyConfigFile); return new BasicVitamServer(jettyConfigFile); } catch (final IllegalArgumentException e) { LOGGER.error( "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(), e); throw new VitamApplicationServerException( "Jetty server can not run with this jetty config file : " + jettyConfigFile); } } private  VitamServerFactory(); static VitamServer newVitamServerOnDefaultPort(); static void setDefaultPort(int port); static int getDefaultPort(); static VitamServer newVitamServer(int port); static VitamServer newVitamServerWithoutConnector(int port); static VitamServer newVitamServerByJettyConf(final String jettyConfigFile);  }