Class ResourceRegistryContextClientFactory

java.lang.Object
org.gcube.informationsystem.resourceregistry.contexts.ResourceRegistryContextClientFactory

public class ResourceRegistryContextClientFactory extends Object
Author:
Luca Frosini (ISTI - CNR)
  • Constructor Details

    • ResourceRegistryContextClientFactory

      public ResourceRegistryContextClientFactory()
  • Method Details

    • getResourceRegistryURL

      public static String getResourceRegistryURL()
      Gets the Resource Registry service URL using the current context.
      Returns:
      The complete URL for the Resource Registry service
    • getResourceRegistryURL

      public static String getResourceRegistryURL(String context)
      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

      public static ResourceRegistryContextClient create()
      Creates a new ResourceRegistryContextClient instance using the current context.
      Returns:
      A new ResourceRegistryContextClient instance configured for the current context
    • create

      public static ResourceRegistryContextClient create(String context)
      Creates a new ResourceRegistryContextClient instance for a specific context.
      Parameters:
      context - The context to use for the ResourceRegistryContextClient instance
      Returns:
      A new ResourceRegistryContextClient instance configured for the specified context