Package org.codice.ddf.opensearch.source
Class OpenSearchParserImpl
java.lang.Object
org.codice.ddf.opensearch.source.OpenSearchParserImpl
- All Implemented Interfaces:
OpenSearchParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcheckAndReplace(org.apache.cxf.jaxrs.client.WebClient client, String inputStr, String definition, List<String> parameters) Checks the input and replaces the items inside of the url.protected static booleanhasParameter(String parameter, List<String> parameters) voidpopulateContextual(org.apache.cxf.jaxrs.client.WebClient client, Map<String, String> searchPhraseMap, List<String> parameters) voidpopulateSearchOptions(org.apache.cxf.jaxrs.client.WebClient client, ddf.catalog.operation.QueryRequest queryRequest, ddf.security.Subject subject, List<String> parameters) voidpopulateSpatial(org.apache.cxf.jaxrs.client.WebClient client, org.locationtech.jts.geom.Geometry geometry, BoundingBox boundingBox, org.locationtech.jts.geom.Polygon polygon, PointRadius pointRadius, List<String> parameters) voidpopulateTemporal(org.apache.cxf.jaxrs.client.WebClient client, ddf.catalog.impl.filter.TemporalFilter temporal, List<String> parameters) protected static StringtranslateToOpenSearchSort(org.geotools.api.filter.sort.SortBy ddfSort)
-
Constructor Details
-
OpenSearchParserImpl
public OpenSearchParserImpl()
-
-
Method Details
-
populateSearchOptions
public void populateSearchOptions(org.apache.cxf.jaxrs.client.WebClient client, ddf.catalog.operation.QueryRequest queryRequest, ddf.security.Subject subject, List<String> parameters) - Specified by:
populateSearchOptionsin interfaceOpenSearchParser
-
populateContextual
public void populateContextual(org.apache.cxf.jaxrs.client.WebClient client, Map<String, String> searchPhraseMap, List<String> parameters) - Specified by:
populateContextualin interfaceOpenSearchParser
-
populateTemporal
public void populateTemporal(org.apache.cxf.jaxrs.client.WebClient client, ddf.catalog.impl.filter.TemporalFilter temporal, List<String> parameters) - Specified by:
populateTemporalin interfaceOpenSearchParser
-
populateSpatial
public void populateSpatial(org.apache.cxf.jaxrs.client.WebClient client, @Nullable org.locationtech.jts.geom.Geometry geometry, @Nullable BoundingBox boundingBox, @Nullable org.locationtech.jts.geom.Polygon polygon, @Nullable PointRadius pointRadius, List<String> parameters) - Specified by:
populateSpatialin interfaceOpenSearchParser
-
checkAndReplace
protected static void checkAndReplace(org.apache.cxf.jaxrs.client.WebClient client, String inputStr, String definition, List<String> parameters) Checks the input and replaces the items inside of the url.- Parameters:
client- The URL to do the replacement on. NOTE: replacement is done directly on this object.inputStr- Item to put into the URL.definition- Area inside of the URL to be replaced by.
-
hasParameter
-
translateToOpenSearchSort
-