public class JettyConfigurator extends Object
JettyConfigurator 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.
JettyConstants| Constructor and Description |
|---|
JettyConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
startServer(String id,
Dictionary<String,? extends Object> settings)
Creates an instance of Jetty parameterized with a dictionary of settings
|
static void |
stopServer(String id)
Stops a previously started instance of Jetty.
|
public static void startServer(String id, Dictionary<String,? extends Object> settings) throws Exception
id - The identifier for the server instancesettings - The dictionary of settings used to configure the server instanceException - If the server failed to start for any reasonpublic static void stopServer(String id) throws Exception
id - The identifier for the server instanceException - If the server failed to stop for any reason.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.