Class GenericResolver

java.lang.Object
org.gcube.portlets.user.uriresolvermanager.entity.GenericResolver
All Implemented Interfaces:
Resolver
Direct Known Subclasses:
CatalogueResolver, GeoportalResolver, SHUBResolver

public class GenericResolver extends Object implements Resolver
The Class Resolver.
Author:
Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it May 4, 2015
  • Constructor Details

    • GenericResolver

      public GenericResolver(String resourceName, String entryName)
      Instantiates a new resolver.
      Parameters:
      resourceName - the resource name
      entryName - the entry name
  • Method Details

    • getResourceName

      public String getResourceName()
      Gets the resource name.
      Specified by:
      getResourceName in interface Resolver
      Returns:
      the resourceName
    • getEntryName

      public String getEntryName()
      Gets the entry name.
      Specified by:
      getEntryName in interface Resolver
      Returns:
      the entryName
    • setResourceName

      public void setResourceName(String resourceName)
      Sets the resource name.
      Parameters:
      resourceName - the resourceName to set
    • setEntryName

      public void setEntryName(String entryName)
      Sets the entry name.
      Parameters:
      entryName - the entryName to set
    • getLink

      public String getLink(String baseURI, Map<String,String> parameters) throws Exception
      Gets the link.
      Specified by:
      getLink in interface Resolver
      Parameters:
      baseURI - the base URI
      parameters - the parameters
      Returns:
      the link
      Throws:
      Exception - the exception
    • shortLink

      public String shortLink(String theLink, Map<String,String> parameters) throws Exception
      Short link.
      Specified by:
      shortLink in interface Resolver
      Parameters:
      theLink - the the link
      parameters - the parameters
      Returns:
      the string
      Throws:
      Exception - the exception
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string