public class ParentRestClient<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
assembly |
protected String |
category |
protected Class<T> |
clazz |
protected javax.ws.rs.client.Client |
client |
protected ClientConfiguration |
configuration |
static int |
DEFAULT_NUM_THREADS |
protected static String |
EMPTY_STRING |
protected static com.fasterxml.jackson.databind.ObjectMapper |
jsonObjectMapper |
static int |
LIMIT |
protected org.slf4j.Logger |
logger |
protected static String |
META |
protected static String |
REST |
static int |
REST_CALL_BATCH_SIZE |
protected String |
species |
protected String |
subcategory |
protected static String |
WEBSERVICES |
Constructor and Description |
---|
ParentRestClient(ClientConfiguration configuration)
Deprecated.
|
ParentRestClient(String species,
String assembly,
ClientConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
CellBaseDataResponse<Long> |
count(org.opencb.commons.datastore.core.Query query) |
protected <U> CellBaseDataResponse<U> |
execute(List<String> idList,
String resource,
org.opencb.commons.datastore.core.QueryOptions options,
Class<U> clazz) |
protected <U> CellBaseDataResponse<U> |
execute(List<String> idList,
String resource,
org.opencb.commons.datastore.core.QueryOptions options,
Class<U> clazz,
boolean post) |
protected <U> CellBaseDataResponse<U> |
execute(String action,
org.opencb.commons.datastore.core.Query query,
org.opencb.commons.datastore.core.QueryOptions queryOptions,
Class<U> clazz) |
protected <U> CellBaseDataResponse<U> |
execute(String action,
org.opencb.commons.datastore.core.Query query,
org.opencb.commons.datastore.core.QueryOptions queryOptions,
Class<U> clazz,
boolean post) |
protected <U> CellBaseDataResponse<U> |
execute(String ids,
String resource,
org.opencb.commons.datastore.core.QueryOptions queryOptions,
Class<U> clazz) |
protected <U> CellBaseDataResponse<U> |
execute(String ids,
String resource,
org.opencb.commons.datastore.core.QueryOptions queryOptions,
Class<U> clazz,
boolean post) |
CellBaseDataResponse<T> |
first() |
CellBaseDataResponse<T> |
get(List<String> id,
org.opencb.commons.datastore.core.QueryOptions queryOptions) |
protected javax.ws.rs.client.WebTarget |
getBaseUrl(List<String> hosts,
String version) |
protected final String species
protected final String assembly
protected final javax.ws.rs.client.Client client
protected String category
protected String subcategory
protected final ClientConfiguration configuration
protected static com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper
protected final org.slf4j.Logger logger
public static final int LIMIT
public static final int REST_CALL_BATCH_SIZE
public static final int DEFAULT_NUM_THREADS
protected static final String EMPTY_STRING
protected static final String META
protected static final String WEBSERVICES
protected static final String REST
@Deprecated public ParentRestClient(ClientConfiguration configuration)
public ParentRestClient(String species, String assembly, ClientConfiguration configuration)
public CellBaseDataResponse<Long> count(org.opencb.commons.datastore.core.Query query) throws IOException
IOException
public CellBaseDataResponse<T> first() throws IOException
IOException
public CellBaseDataResponse<T> get(List<String> id, org.opencb.commons.datastore.core.QueryOptions queryOptions) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(String action, org.opencb.commons.datastore.core.Query query, org.opencb.commons.datastore.core.QueryOptions queryOptions, Class<U> clazz) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(String action, org.opencb.commons.datastore.core.Query query, org.opencb.commons.datastore.core.QueryOptions queryOptions, Class<U> clazz, boolean post) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(String ids, String resource, org.opencb.commons.datastore.core.QueryOptions queryOptions, Class<U> clazz) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(String ids, String resource, org.opencb.commons.datastore.core.QueryOptions queryOptions, Class<U> clazz, boolean post) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(List<String> idList, String resource, org.opencb.commons.datastore.core.QueryOptions options, Class<U> clazz) throws IOException
IOException
protected <U> CellBaseDataResponse<U> execute(List<String> idList, String resource, org.opencb.commons.datastore.core.QueryOptions options, Class<U> clazz, boolean post) throws IOException
IOException
Copyright © 2019. All rights reserved.