public class ICFactory extends Object
XQuerys and DiscoveryClients for the Information Collector service.| Modifier and Type | Class and Description |
|---|---|
static class |
ICFactory.ParameterBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
instancesNSDeclaration |
static String |
nsDeclaration |
| Constructor and Description |
|---|
ICFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.resources.discovery.client.api.DiscoveryClient<String> |
client()
Returns a
DiscoveryClient that submits queries to the Information Collector service without
parsing the results. |
static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> |
clientFor(Class<R> type)
Returns a
DiscoveryClient that submits queries to the Information Collector service and parses query results with a
given resource type. |
static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> |
clientWith(org.gcube.resources.discovery.client.api.ResultParser<R> parser)
Returns a
DiscoveryClient that submits queries to the Information Collector service and parses query results with a
given ResultParser. |
static ICFactory.ParameterBuilder |
params() |
static org.gcube.resources.discovery.client.queries.impl.XQuery |
queryFor(Class<?> type)
Returns a
XQuery for a given resource type. |
public static final String nsDeclaration
public static final String instancesNSDeclaration
public static org.gcube.resources.discovery.client.queries.impl.XQuery queryFor(Class<?> type) throws IllegalStateException
XQuery for a given resource type.type - the resource typeIllegalStateException - if a query for the resource type has not been previously registeredpublic static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientFor(Class<R> type)
DiscoveryClient that submits queries to the Information Collector service and parses query results with a
given resource type.type - the resource typepublic static org.gcube.resources.discovery.client.api.DiscoveryClient<String> client()
DiscoveryClient that submits queries to the Information Collector service without
parsing the results.public static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientWith(org.gcube.resources.discovery.client.api.ResultParser<R> parser)
DiscoveryClient that submits queries to the Information Collector service and parses query results with a
given ResultParser.parser - the resource parserpublic static ICFactory.ParameterBuilder params()
Copyright © 2018. All Rights Reserved.