com.supermap.services.providers.aggregation

Class RemoteMapProviderFactory

  • java.lang.Object
    • com.supermap.services.providers.aggregation.RemoteMapProviderFactory


  • public final class RemoteMapProviderFactory
    extends java.lang.Object
    

    Different sources of map service provider factory.

    Through this factory, you can build service providers of map services from different sources.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected int checkLicense()
      The license for examine.
      static RemoteMapProviderFactory getInstance()
      Obtain an instance of a remote map service provider factory.
      MapProvider getMapProvider(ServiceInfo serviceInfo)
      Get the map service provider based on endpoint information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteMapProviderFactory

        public RemoteMapProviderFactory()
        
    • Method Detail

      • getInstance

        public static RemoteMapProviderFactory getInstance()
        

        Obtain an instance of a remote map service provider factory.

        Returns:
        The instance of the remote map service provider factory.
      • checkLicense

        protected int checkLicense()
        

        The license for examine.

        According to the user's product configuration, find the corresponding license information.

        Currently requires the use of enterprise license.

        Returns:
        The query returns 0 successively, otherwise returns an integer other than 0.
      • getMapProvider

        public MapProvider getMapProvider(ServiceInfo serviceInfo)
        

        Get the map service provider based on endpoint information. For example, if the endpoint type is "UGC", a SuperMap map service provider (UGCMapProvider) is returned; if the endpoint type is "WMS", the WMS service provider (WMSMapProvider) is returned.

        When the method is called, the license is checked, please use the correct license configuration

        Parameters:
        serviceInfo - Endpoint information.
        Returns:
        map service provider.