Class ResourceRegistryPublisherFactory
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisherFactory
-
public class ResourceRegistryPublisherFactory extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description ResourceRegistryPublisherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceRegistryPublishercreate()Creates a new ResourceRegistryPublisher instance using the current context.static ResourceRegistryPublishercreate(String context)Creates a new ResourceRegistryPublisher instance for a specific context.static StringgetResourceRegistryURL()Gets the Resource Registry service URL using the current context.static StringgetResourceRegistryURL(String context)Gets the Resource Registry service URL for a specific context.
-
-
-
Method Detail
-
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 ResourceRegistryPublisher create()
Creates a new ResourceRegistryPublisher instance using the current context.- Returns:
- A new ResourceRegistryPublisher instance configured for the current context
-
create
public static ResourceRegistryPublisher create(String context)
Creates a new ResourceRegistryPublisher instance for a specific context.- Parameters:
context- The context to use for the ResourceRegistryPublisher instance- Returns:
- A new ResourceRegistryPublisher instance configured for the specified context
-
-