Class AbstractGetFeatureResponseParserFactory

    • Constructor Detail

      • AbstractGetFeatureResponseParserFactory

        public AbstractGetFeatureResponseParserFactory()
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        Description copied from interface: WFSResponseFactory
        Indicates whether the factory instance is able to create parser instances.
        Returns:
        true if there's nothing preventing the creation of the parsers this factory should produce
        See Also:
        WFSResponseFactory.isAvailable()
      • canProcess

        public boolean canProcess​(WFSRequest request,
                                  String contentType)
        Checks if this factory can create a parser for the potential responses of the given WFS request.

        For instance, this factory can create a parser as long as the request is a GetFeature request and the request output format matches "text/xml; subtype=gml/3.1.1".

        It also checks that the requested type is a SimpleFeatureType

        Returns:
        true if this factory can create a parser for the responses of the given request
        See Also:
        WFSResponseFactory.canProcess(WFSRequest, String)
      • isValidResponseHead

        protected boolean isValidResponseHead​(String head)
        Specified by:
        isValidResponseHead in class AbstractWFSResponseFactory
        Parameters:
        head - The first couple of characters from the response, typically the first 512
        Returns:
        true, if head is an indicator for the expected XML result structure.
      • getSupportedVersions

        protected abstract List<String> getSupportedVersions()