Class WFSQueryBuilder
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.wfs.WFSQueryBuilder
-
public class WFSQueryBuilder extends Object
The Class WFSQueryBuilder.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Jan 28, 2022
-
-
Field Summary
Fields Modifier and Type Field Description static StringGEOM_NAME_BOUNDED
-
Constructor Summary
Constructors Constructor Description WFSQueryBuilder()Instantiates a new WFS query builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(WFSParameter param, String value)Adds the parameter.voidaddParameter(WFSParameter param, List<String> values, String separtor)Adds the parameter.StringbuildWFSFeatureQuery(String endpoint, HashMap<WFSParameter,String> wfsGetFeatureRequest)Builds the WFS feature query.HashMap<WFSParameter,String>getDefaultWFSGetFeatureRequest()Gets the default WFS get feature request.StringgetQuery()Gets the query.
-
-
-
Field Detail
-
GEOM_NAME_BOUNDED
public static final String GEOM_NAME_BOUNDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultWFSGetFeatureRequest
public HashMap<WFSParameter,String> getDefaultWFSGetFeatureRequest()
Gets the default WFS get feature request.- Returns:
- the default WFS get feature request
-
addParameter
public void addParameter(WFSParameter param, String value)
Adds the parameter.- Parameters:
param- the paramvalue- the value
-
addParameter
public void addParameter(WFSParameter param, List<String> values, String separtor)
Adds the parameter.- Parameters:
param- the paramvalues- the valuessepartor- the separtor
-
getQuery
public String getQuery()
Gets the query.- Returns:
- the query
-
buildWFSFeatureQuery
public String buildWFSFeatureQuery(String endpoint, HashMap<WFSParameter,String> wfsGetFeatureRequest)
Builds the WFS feature query.- Parameters:
endpoint- the endpointwfsGetFeatureRequest- the wfs get feature request- Returns:
- the string
-
-