public class GeoRocketClient extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected HttpClient | clientHTTP client used to connect to GeoRocket |
static String | DEFAULT_HOSTDefault server host: "localhost" |
static int | DEFAULT_PORTDefault server port: 63020 |
| Constructor and Description |
|---|
GeoRocketClient(HttpClient client)Create a client connecting to GeoRocket through the given HTTP client |
GeoRocketClient(HttpClientOptions options, Vertx vertx)Create a client connecting to GeoRocket running with specified options |
GeoRocketClient(String host, int port, Vertx vertx)Create a client connecting to GeoRocket running on the specified host and port |
GeoRocketClient(String host, Vertx vertx)Create a client connecting to GeoRocket running on the specified host and the default port 63020 |
GeoRocketClient(Vertx vertx)Create a client connecting to GeoRocket running on "localhost":63020 |
| Modifier and Type | Method and Description |
|---|---|
void | close()Close this client and release all resources |
StoreClient | getStore()Create a new client accessing the GeoRocket data store |
public static final String DEFAULT_HOST
public static final int DEFAULT_PORT
protected final HttpClient client
public GeoRocketClient(Vertx vertx)
vertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(String host, Vertx vertx)
host - the GeoRocket hostvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(String host, int port, Vertx vertx)
host - the GeoRocket hostport - the GeoRocket portvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(HttpClientOptions options, Vertx vertx)
options - options for HTTP clientvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(HttpClient client)
client - the HTTP clientpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic StoreClient getStore()