Class WFSQueryBuilder


  • public class WFSQueryBuilder
    extends Object
    The Class WFSQueryBuilder.
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Jan 28, 2022
    • Constructor Detail

      • WFSQueryBuilder

        public WFSQueryBuilder()
        Instantiates a new WFS query builder.
    • 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 param
        value - the value
      • addParameter

        public void addParameter​(WFSParameter param,
                                 List<String> values,
                                 String separtor)
        Adds the parameter.
        Parameters:
        param - the param
        values - the values
        separtor - 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 endpoint
        wfsGetFeatureRequest - the wfs get feature request
        Returns:
        the string