Class AccessExternalMain
- java.lang.Object
-
- fr.gouv.vitam.access.external.rest.AccessExternalMain
-
public class AccessExternalMain extends java.lang.Object
Access External web application
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAMETER_JETTY_SERVER_PORT
-
Constructor Summary
Constructors Constructor Description AccessExternalMain(java.lang.String configurationFile)
Constructor with configuration file nameAccessExternalMain(java.lang.String configurationFile, java.lang.Class<? extends javax.ws.rs.core.Application> testBusinessApplication, java.lang.Class<? extends javax.ws.rs.core.Application> testAdminApplication)
This constructor is used for test To customize BusinessApplication and AdminApplication
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamStarter
getVitamServer()
Get the serverstatic void
main(java.lang.String[] args)
Main method to run the application (doing start and join)void
start()
Start the servervoid
startAndJoin()
Start and join the servervoid
stop()
Stop the server
-
-
-
Field Detail
-
PARAMETER_JETTY_SERVER_PORT
public static final java.lang.String PARAMETER_JETTY_SERVER_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AccessExternalMain
public AccessExternalMain(java.lang.String configurationFile)
Constructor with configuration file name- Parameters:
configurationFile
-
-
AccessExternalMain
public AccessExternalMain(java.lang.String configurationFile, java.lang.Class<? extends javax.ws.rs.core.Application> testBusinessApplication, java.lang.Class<? extends javax.ws.rs.core.Application> testAdminApplication)
This constructor is used for test To customize BusinessApplication and AdminApplication- Parameters:
configurationFile
-testBusinessApplication
-testAdminApplication
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Main method to run the application (doing start and join)- Parameters:
args
-
-
start
public void start() throws VitamApplicationServerException
Start the server- Throws:
VitamApplicationServerException
-
startAndJoin
public void startAndJoin() throws VitamApplicationServerException
Start and join the server- Throws:
VitamApplicationServerException
-
stop
public void stop() throws VitamApplicationServerException
Stop the server- Throws:
VitamApplicationServerException
-
getVitamServer
public final VitamStarter getVitamServer()
Get the server- Returns:
- the vitam server
-
-