com.supermap.services.providers

Class WFSFactory

  • java.lang.Object
    • com.supermap.services.providers.WFSFactory


  • public final class WFSFactory
    extends java.lang.Object
    

    WFS service factory class.

    Used to get the WFS service to support the operation of the acquisition of the object, the operation of the results of analytic objects, and WFS services supported by the version. Currently in the SuperMap iServer, published WFS service support operations are GetCapabilities, DescribeFeatureType, GetFeature and so on, and supported version contains 1.0.0.

    • Constructor Summary

      Constructors 
      Constructor and Description
      WFSFactory(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)
      Builds a WFSFactory object based on the WFS service root, user name, and password.
    • Constructor Detail

      • WFSFactory

        public WFSFactory(java.lang.String serviceURL,
                  java.lang.String userName,
                  java.lang.String password)
        

        Builds a WFSFactory object based on the WFS service root, user name, and password.

        Parameters:
        serviceURL - WFS service root directory.
        userName - username.
        password - password.
    • Method Detail

      • getSupportedVersion

        public java.lang.String[] getSupportedVersion()
        

        Obtains a list of all WFS version numbers supported by this WFS service factory.

        The version number list is sorted in descending order, ie the highest version in the first, the lowest version at the last one.

        Returns:
        version number array.
      • getCapabilitiesRequest

        public AbstractCapabilitiesRequest getCapabilitiesRequest(java.lang.String version)
        
        Gets the GetCapabilities request object for the specified version of the WFS service.
        Parameters:
        version - version.
        Returns:
        GetCapabilities request object.
      • getCapabilitiesParser

        public WFSCapabilitiesParser getCapabilitiesParser(java.lang.String version)
        
        Gets the GetCapabilities operation result resolver for the specified version.
        Parameters:
        version - version.
        Returns:
        GetCapabilities operation results parser.
      • getFeatureParser

        public GMLParser getFeatureParser(WFSCapabilities capabilities)
        

        Obtains the feature resolver based on WFS service capability information.

        Parameters:
        capabilities - WFS service capability information.
        Returns:
        feature (in the WFS) parser.
      • getFeatureRequest

        public AbstractGetFeatureRequest getFeatureRequest(WFSCapabilities capabilities)
        
        Gets the GetFeature request object based on WFS service capability information.
        Parameters:
        capabilities - WFS service capability information.
        Returns:
        GetFeature request object.
      • getFeatureTypeParser

        public AbstractFeatureTypeParser getFeatureTypeParser(WFSCapabilities capabilities)
        

        Obtains the DescribeFeatureType action result parser based on WFS service capability information.

        Parameters:
        capabilities - WFS service capability information.
        Returns:
        DescribeFeatureType operation result parser.
      • getDescribeFeatureTypeRequest

        public AbstractFeatureTypeRequest getDescribeFeatureTypeRequest(WFSCapabilities capabilities)
        

        Gets the DescribeFeatureType request object based on WFS service capability information.

        Parameters:
        capabilities - WFS service capability information.
        Returns:
        DescribeFeatureType Request object.
      • getExceptionParser

        public AbstractExceptionParser getExceptionParser(WFSCapabilities capabilities)
        

        Obtains an error message parser based on WFS service capability information.

        Parameters:
        capabilities - WFS service capability information.
        Returns:
        error message parser.