public class GeoRocketClient
extends java.lang.Object
implements java.io.Closeable| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.core.http.HttpClient | clientHTTP client used to connect to GeoRocket |
static java.lang.String | DEFAULT_HOSTDefault server host: "localhost" |
static int | DEFAULT_PORTDefault server port: 63020 |
| Constructor and Description |
|---|
GeoRocketClient(io.vertx.core.http.HttpClient client)Create a client connecting to GeoRocket through the given HTTP client |
GeoRocketClient(io.vertx.core.http.HttpClientOptions options, io.vertx.core.Vertx vertx)Create a client connecting to GeoRocket running with specified options |
GeoRocketClient(java.lang.String host, int port, io.vertx.core.Vertx vertx)Create a client connecting to GeoRocket running on the specified host and port |
GeoRocketClient(java.lang.String host, io.vertx.core.Vertx vertx)Create a client connecting to GeoRocket running on the specified host and the default port 63020 |
GeoRocketClient(io.vertx.core.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 java.lang.String DEFAULT_HOST
public static final int DEFAULT_PORT
protected final io.vertx.core.http.HttpClient client
public GeoRocketClient(io.vertx.core.Vertx vertx)
vertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(java.lang.String host,
io.vertx.core.Vertx vertx)host - the GeoRocket hostvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(java.lang.String host,
int port,
io.vertx.core.Vertx vertx)host - the GeoRocket hostport - the GeoRocket portvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(io.vertx.core.http.HttpClientOptions options,
io.vertx.core.Vertx vertx)options - options for HTTP clientvertx - a Vert.x instance used to create a HTTP clientpublic GeoRocketClient(io.vertx.core.http.HttpClient client)
client - the HTTP clientpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic StoreClient getStore()