Package com.blackrook.small.jetty
Class SmallJettyBootstrap
java.lang.Object
com.blackrook.small.jetty.SmallJettyBootstrap
public final class SmallJettyBootstrap extends Object
Bootstrap for Jetty server.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors Constructor Description SmallJettyBootstrap()
-
Method Summary
Modifier and Type Method Description static org.eclipse.jetty.server.Server
create(SmallJettyConfiguration config)
Starts Jetty using the provided configuration.
-
Constructor Details
-
SmallJettyBootstrap
public SmallJettyBootstrap()
-
-
Method Details
-
create
public static org.eclipse.jetty.server.Server create(SmallJettyConfiguration config) throws ExceptionStarts 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.
-