Package org.codice.ddf.opensearch.source
Class RestUrl
java.lang.Object
org.codice.ddf.opensearch.source.RestUrl
Builds DDF REST URL. Limited to single metacard retrieval.
- Author:
- Ashraf Barakat
-
Method Summary
Modifier and TypeMethodDescriptionbuildUrl()getId()booleanstatic RestUrlnewInstance(String urlTemplate) Creates aRestUrlobject from an endpoint url such ashttp://localhost:8181/services/catalog/query?voidvoidsetRetrieveResource(boolean retrieveResource) toString()
-
Method Details
-
newInstance
public static RestUrl newInstance(String urlTemplate) throws URISyntaxException, MalformedURLException Creates aRestUrlobject from an endpoint url such ashttp://localhost:8181/services/catalog/query?q={searchTerms}&src={fs:routeTo?}&count={count?}.- Parameters:
urlTemplate- - endpoint url template- Throws:
URISyntaxExceptionMalformedURLException
-
getId
-
setId
-
isRetrieveResource
public boolean isRetrieveResource() -
setRetrieveResource
public void setRetrieveResource(boolean retrieveResource) -
toString
-
buildUrl
-