Class GeoprocessingFeatures

    • Constructor Detail

      • GeoprocessingFeatures

        public GeoprocessingFeatures()
        Creates an instance.
        Since:
        100.0.0
      • GeoprocessingFeatures

        public GeoprocessingFeatures​(FeatureSet featureSet)
        Creates an instance containing features.
        Parameters:
        featureSet - the set of features
        Throws:
        IllegalArgumentException - if featureSet is null
        Since:
        100.0.0
      • GeoprocessingFeatures

        public GeoprocessingFeatures​(String url)
        Creates an instance based on a URL to features.
        Parameters:
        url - the URL
        Throws:
        IllegalArgumentException - if the URL is null or empty
        Since:
        100.0.0
    • Method Detail

      • getUrl

        public String getUrl()
        Returns the URL or empty string if this has not been set.
        Returns:
        the URL
        Since:
        100.0.0
      • setFeatures

        public void setFeatures​(FeatureSet features)
        Sets the features. This should only be set when using this instance as an input parameter. This property will be ignored if setUrl(String) is set.
        Parameters:
        features - the features to use
        Throws:
        IllegalArgumentException - if features is null
        Since:
        100.0.0
      • canFetchOutputFeatures

        public boolean canFetchOutputFeatures()
        Indicates if features can be fetched from the service for an output parameter.
        Returns:
        true, if features can be fetched
        Since:
        100.0.0
      • fetchOutputFeaturesAsync

        public ListenableFuture<Void> fetchOutputFeaturesAsync()
        Asynchronously requests features from the service. It is not necessary to call this if getFeatures() is already populated. Add a done listener to the listenable future to know when this method has completed. Once the future has completed, calling getFeatures() will return the features.
        Returns:
        a listenable future that will be done when the features have been fetched
        Since:
        100.0.0
        See Also:
        canFetchOutputFeatures()
      • getCredential

        public Credential getCredential()
        Gets the credential used to authenticate the user with the geoprocessing service.
        Specified by:
        getCredential in interface RemoteResource
        Returns:
        the credential used for authentication
        Since:
        100.0.0
      • setCredential

        public void setCredential​(Credential credential)
        Sets the credential used to authenticate the user with the geoprocessing service.
        Specified by:
        setCredential in interface RemoteResource
        Parameters:
        credential - the credential used for authentication
        Since:
        100.0.0