Interface VitamServer

All Superinterfaces:
VitamServerInterface
All Known Implementing Classes:
BasicVitamServer

public interface VitamServer extends VitamServerInterface
Interface for every Vitam REST Server
  • Field Details

  • Method Details

    • configure

      void configure(org.eclipse.jetty.server.Handler applicationHandler) throws VitamApplicationServerException
      Configure the server with one handler
      Parameters:
      applicationHandler -
      Throws:
      VitamApplicationServerException
    • startAndJoin

      void startAndJoin() throws VitamApplicationServerException
      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

      void start() throws VitamApplicationServerException
      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