com.supermap.services.providers

Class ArcGISRestMapProviderSetting

  • All Implemented Interfaces:
    java.io.Serializable


    public class ArcGISRestMapProviderSetting
    extends MapProviderSetting
    

    ArcGIS Rest map service provider configuration object

    This object is used by the ArcGIS Rest map service provider to include the relevant parameter information, including: Rest map service address; user name; password.

    See Also:
    Serialized Form
    • Constructor Detail

      • ArcGISRestMapProviderSetting

        public ArcGISRestMapProviderSetting()
        
    • Method Detail

      • getRestServiceRootURL

        public java.lang.String getRestServiceRootURL()
        
        Get the address of ArcGIS Rest map service.
        Returns:
      • setRestServiceRootURL

        public void setRestServiceRootURL(java.lang.String restServiceRootURL)
        
        Set the ArcGIS Rest map service address.
        Parameters:
        restServiceRootURL -
      • getUserName

        public java.lang.String getUserName()
        
        Get the user name to access the ArcGIS Rest service.
        Returns:
      • setUserName

        public void setUserName(java.lang.String userName)
        
        Set the user name to access the ArcGIS Rest service.
        Parameters:
        userName -
      • getPassword

        public java.lang.String getPassword()
        
        Get the user name to access the ArcGIS Rest service.
        Returns:
      • setPassword

        public void setPassword(java.lang.String password)
        
        Set the password to access the ArcGIS Rest service.
        Parameters:
        password -
      • getGetTokenUrl

        public java.lang.String getGetTokenUrl()
        

        Get the ArcGIS Token service address.

        This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when ArcGISRestMapProviderSetting#restServiceRootURL is http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.

        Returns:
      • setGetTokenUrl

        public void setGetTokenUrl(java.lang.String getTokenUrl)
        

        Set the ArcGIS Token service address.

        This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when ArcGISRestMapProviderSetting#restServiceRootURL is http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.

        Parameters:
        getTokenUrl -
      • getSerialversionuid

        public static long getSerialversionuid()
        
        Get the UID of the service version.
        Returns:
      • getCacheEnabled

        public boolean getCacheEnabled()
        
        The cache is opened or not.
        Returns:
      • setCacheEnabled

        public void setCacheEnabled(boolean cacheEnabled)
        
        The cache is opened or not.
        Parameters:
        cacheEnabled -
      • getToken

        public java.lang.String getToken()
        

        Get the Token that accesses the ArcGIS REST service.

        When the user name,password and Token are configured at the same time, token authentication is required.

        Returns:
      • setToken

        public void setToken(java.lang.String token)
        

        Set the Token to access the ArcGIS REST service.

        When the user name,password and Token are configured at the same time, token authentication is required.

        Parameters:
        token - token
      • getHttpReferer

        public java.lang.String getHttpReferer()
        

        Gets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.

        Returns:
      • setHttpReferer

        public void setHttpReferer(java.lang.String httpReferer)
        

        Sets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.

        Parameters:
        httpReferer - HTTP referer
      • equals

        public boolean equals(java.lang.Object obj)
        

        To determine whether the two objects are equal.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to be compared.
        Returns:
        a value indicating whether the two objects are equal, true that the two objects are equal.
      • hashCode

        public int hashCode()
        
        Gets the hash value of the object instance
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash value