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