Package fr.gouv.vitam.common.server
Class VitamServerFactory
java.lang.Object
fr.gouv.vitam.common.server.VitamServerFactory
Vitam Server factory for REST server
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get the Default Portstatic VitamServer
newVitamServer
(int port) static VitamServer
newVitamServerByJettyConf
(String jettyConfigFile) Create a Vitam Server by jetty configstatic VitamServer
static VitamServer
newVitamServerWithoutConnector
(int port) static void
setDefaultPort
(int port) Set a new Default Port
-
Method Details
-
newVitamServerOnDefaultPort
- Returns:
- a VitamServer with the default port
-
setDefaultPort
public static void setDefaultPort(int port) Set a new Default Port- Parameters:
port
-- Throws:
IllegalArgumentException
- if port <= 0
-
getDefaultPort
public static int getDefaultPort()Get the Default Port- Returns:
- the default current port
-
newVitamServer
- Parameters:
port
-- Returns:
- a VitamServer with the specified port
- Throws:
IllegalArgumentException
- if port <= 0
-
newVitamServerWithoutConnector
-
newVitamServerByJettyConf
public static VitamServer newVitamServerByJettyConf(String jettyConfigFile) throws VitamApplicationServerException Create a Vitam Server by jetty config- Parameters:
jettyConfigFile
-- Returns:
- vitam server
- Throws:
VitamApplicationServerException
-