Class SmallJettyBootstrap

java.lang.Object
com.blackrook.small.jetty.SmallJettyBootstrap

public final class SmallJettyBootstrap
extends Object
Bootstrap for Jetty server.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • create

      public static org.eclipse.jetty.server.Server create​(SmallJettyConfiguration config) throws Exception
      Starts Jetty using the provided configuration.
      Parameters:
      config - the configuration to use.
      Throws:
      com.blackrook.small.exception.SmallFrameworkSetupException - if Jetty is not available nor on the classpath, or some other error occurs.
      InterruptedException - if waiting for the server to stop was interrupted.
      Exception - if Jetty could not be started.
      Since:
      1.5.3 this returns the Server created.