Class SmallJettyBootstrap
java.lang.Object
com.blackrook.small.jetty.SmallJettyBootstrap
Bootstrap for Jetty server.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.server.Servercreate(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 Exception Starts Jetty using the provided configuration.- Parameters:
config- the configuration to use.- Returns:
- the Server created.
- 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.
-