Package org.eclipse.equinox.http.jetty
Class JettyConfigurator
- java.lang.Object
-
- org.eclipse.equinox.http.jetty.JettyConfigurator
-
public class JettyConfigurator extends java.lang.ObjectJettyConfigurator provides API level access for creating configured instances of a Jetty-based Http Service. The created instances are not persistent across re-starts of the bundle.
- See Also:
JettyConstants- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description JettyConfigurator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidstartServer(java.lang.String id, java.util.Dictionary<java.lang.String,? extends java.lang.Object> settings)Creates an instance of Jetty parameterized with a dictionary of settingsstatic voidstopServer(java.lang.String id)Stops a previously started instance of Jetty.
-
-
-
Method Detail
-
startServer
public static void startServer(java.lang.String id, java.util.Dictionary<java.lang.String,? extends java.lang.Object> settings) throws java.lang.ExceptionCreates an instance of Jetty parameterized with a dictionary of settings- Parameters:
id- The identifier for the server instancesettings- The dictionary of settings used to configure the server instance- Throws:
java.lang.Exception- If the server failed to start for any reason
-
stopServer
public static void stopServer(java.lang.String id) throws java.lang.ExceptionStops a previously started instance of Jetty. If the identified instance is not started this will call will do nothing.- Parameters:
id- The identifier for the server instance- Throws:
java.lang.Exception- If the server failed to stop for any reason.
-
-