public class Bootstrapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Bootstrapper.ConfigServer
ConfigServer specifies a configuration server supporting
requests to create a REST server.
|
static class |
Bootstrapper.RESTServer
RESTServer specifies an application providing access to a database
using built-in RESTful services.
|
Constructor and Description |
---|
Bootstrapper() |
Modifier and Type | Method and Description |
---|---|
static void |
checkProperties(Properties properties) |
static String |
getUsage() |
static String |
joinList(List<String> list) |
static String |
joinList(List<String> list,
String sep) |
static List<String> |
listInvalidKeys(Properties properties) |
static void |
main(String[] args)
Command-line invocation.
|
void |
makeServer(Bootstrapper.ConfigServer configServer,
Bootstrapper.RESTServer restServer)
Programmatic invocation.
|
void |
makeServer(Properties properties)
Invocation based on properties.
|
public static void main(String[] args) throws org.apache.http.client.ClientProtocolException, IOException, FactoryConfigurationError
args
- command-line arguments specifying the configuration and REST serverorg.apache.http.client.ClientProtocolException
IOException
FactoryConfigurationError
public void makeServer(Properties properties) throws org.apache.http.client.ClientProtocolException, IOException, FactoryConfigurationError
properties
- the specification of the configuration and REST serverorg.apache.http.client.ClientProtocolException
IOException
FactoryConfigurationError
public void makeServer(Bootstrapper.ConfigServer configServer, Bootstrapper.RESTServer restServer) throws org.apache.http.client.ClientProtocolException, IOException, FactoryConfigurationError
configServer
- the configuration server for creating the REST serverrestServer
- the specification of the REST serverorg.apache.http.client.ClientProtocolException
IOException
FactoryConfigurationError
public static String getUsage()
public static void checkProperties(Properties properties)
public static List<String> listInvalidKeys(Properties properties)
Copyright © 2013-2015 MarkLogic Corporation.