public class Bootstrapper extends Object
Bootstrapper provides an example of how to create a REST server using an HTTP client.
| 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 IOException
Command-line invocation.
args - command-line arguments specifying the configuration and REST serverIOException - if a communication error occurspublic void makeServer(Properties properties) throws IOException
Invocation based on properties.
properties - the specification of the configuration and REST serverIOException - if a communication error occurspublic void makeServer(Bootstrapper.ConfigServer configServer, Bootstrapper.RESTServer restServer) throws IOException
Programmatic invocation.
configServer - the configuration server for creating the REST serverrestServer - the specification of the REST serverIOException - if a communication error occurspublic static String getUsage()
public static void checkProperties(Properties properties)
public static List<String> listInvalidKeys(Properties properties)
Copyright © 2013-2017 MarkLogic Corporation.