Package fr.gouv.vitam.common.server
Interface VitamServer
- All Superinterfaces:
VitamServerInterface
- All Known Implementing Classes:
BasicVitamServer
Interface for every Vitam REST Server
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default messagestatic final String
Default messagestatic final String
Default messagestatic final String
Default messagestatic final String
Default messageFields inherited from interface fr.gouv.vitam.common.server.VitamServerInterface
ADMIN_CONNECTOR_NAME, BUSINESS_CONNECTOR_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.eclipse.jetty.server.Handler applicationHandler) Configure the server with one handlerorg.eclipse.jetty.server.Handler
org.eclipse.jetty.server.Server
retrieve the jettyServerorg.eclipse.jetty.xml.XmlConfiguration
get the configuration of jettyboolean
boolean
check if vitam server is startedboolean
check if vitam server is stoppedvoid
setHandler
(org.eclipse.jetty.server.Handler handler) set jetty handlervoid
start()
start the jetty server without join (Junit only)void
Start the server with implicit Joinvoid
stop()
stop the jetty serverMethods inherited from interface fr.gouv.vitam.common.server.VitamServerInterface
getAdminPort, getPort
-
Field Details
-
SERVER_CAN_NOT_START
Default message- See Also:
-
CONFIG_FILE_IS_A_MANDATORY_ARGUMENT
Default message- See Also:
-
CONFIGURATION_IS_A_MANDATORY_ARGUMENT
Default message- See Also:
-
CAN_CONFIGURE_SERVER
Default message- See Also:
-
SERVER_START_WITH_JETTY_CONFIG
Default message- See Also:
-
-
Method Details
-
configure
void configure(org.eclipse.jetty.server.Handler applicationHandler) throws VitamApplicationServerException Configure the server with one handler- Parameters:
applicationHandler
-- Throws:
VitamApplicationServerException
-
startAndJoin
Start the server with implicit Join- Throws:
VitamApplicationServerException
-
isConfigured
boolean isConfigured()- Returns:
- true if Server is configured
-
getHandler
org.eclipse.jetty.server.Handler getHandler()- Returns:
- the associated handler
-
getServer
org.eclipse.jetty.server.Server getServer()retrieve the jettyServer- Returns:
- the jetty server
-
getServerConfiguration
org.eclipse.jetty.xml.XmlConfiguration getServerConfiguration()get the configuration of jetty- Returns:
- the config
-
isStarted
boolean isStarted()check if vitam server is started- Returns:
- true if jetty server is started
-
isStopped
boolean isStopped()check if vitam server is stopped- Returns:
- true if jetty server is stopped
-
stop
stop the jetty server- Throws:
VitamApplicationServerException
-
start
start the jetty server without join (Junit only)- Throws:
VitamApplicationServerException
-
setHandler
void setHandler(org.eclipse.jetty.server.Handler handler) set jetty handler- Parameters:
handler
- the handler to set
-