Class ResourceRegistryQueryTemplateClientFactory
java.lang.Object
org.gcube.informationsystem.resourceregistry.queries.templates.ResourceRegistryQueryTemplateClientFactory
- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new ResourceRegistryQueryTemplateClient instance using the current context.Creates a new ResourceRegistryQueryTemplateClient instance for a specific context.static StringGets the Resource Registry service URL using the current context.static StringgetResourceRegistryURL(String context) Gets the Resource Registry service URL for a specific context.
-
Constructor Details
-
ResourceRegistryQueryTemplateClientFactory
public ResourceRegistryQueryTemplateClientFactory()
-
-
Method Details
-
getResourceRegistryURL
Gets the Resource Registry service URL using the current context.- Returns:
- The complete URL for the Resource Registry service
-
getResourceRegistryURL
Gets the Resource Registry service URL for a specific context.- Parameters:
context- The context to use for determining the service URL- Returns:
- The complete URL for the Resource Registry service in the specified context
-
create
Creates a new ResourceRegistryQueryTemplateClient instance using the current context.- Returns:
- A new ResourceRegistryQueryTemplateClient instance configured for the current context
-
create
Creates a new ResourceRegistryQueryTemplateClient instance for a specific context.- Parameters:
context- The context to use for the ResourceRegistryQueryTemplateClient instance- Returns:
- A new ResourceRegistryQueryTemplateClient instance configured for the specified context
-