Class RestUrl

java.lang.Object
org.codice.ddf.opensearch.source.RestUrl

public class RestUrl extends Object
Builds DDF REST URL. Limited to single metacard retrieval.
Author:
Ashraf Barakat
  • Method Details

    • newInstance

      public static RestUrl newInstance(String urlTemplate) throws URISyntaxException, MalformedURLException
      Creates a RestUrl object from an endpoint url such as http://localhost:8181/services/catalog/query?q={searchTerms}&src={fs:routeTo?}&count={count?} .
      Parameters:
      urlTemplate - - endpoint url template
      Throws:
      URISyntaxException
      MalformedURLException
    • getId

      public String getId()
    • setId

      public void setId(String literal)
    • isRetrieveResource

      public boolean isRetrieveResource()
    • setRetrieveResource

      public void setRetrieveResource(boolean retrieveResource)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • buildUrl

      public String buildUrl()