Package com.esri.arcgisruntime.io
Interface RemoteResource
-
- All Known Implementing Classes:
AnnotationLayer,ArcGISMapImageLayer,ArcGISMapImageSublayer,ArcGISSceneLayer,ArcGISSublayer,ArcGISTiledElevationSource,ArcGISTiledLayer,ArcGISTiledSublayer,ArcGISVectorTiledLayer,Basemap,BingMapsLayer,ClosestFacilityTask,DictionarySymbolStyle,DimensionLayer,DownloadPreplannedOfflineMapJob,ElevationSource,EstimateTileCacheSizeJob,ExportTileCacheJob,ExportTileCacheTask,ExportVectorTilesJob,ExportVectorTilesTask,GenerateGeodatabaseJob,GenerateOfflineMapJob,GeodatabaseSyncTask,GeoprocessingDataFile,GeoprocessingFeatures,GeoprocessingJob,GeoprocessingRaster,GeoprocessingTask,ImageFrame,ImageServiceRaster,IntegratedMeshLayer,Job,KmlDataset,LocatorTask,ModelSceneSymbol,OfflineMapSyncJob,OfflineMapSyncTask,OfflineMapTask,OgcFeatureCollectionTable,OgcFeatureService,OpenStreetMapLayer,PictureFillSymbol,PictureFillSymbolLayer,PictureMarkerSymbol,PictureMarkerSymbolLayer,PointCloudLayer,Portal,RasterElevationSource,RouteTask,ServiceAreaTask,ServiceFeatureTable,ServiceGeodatabase,ServiceImageTiledLayer,SubtypeSublayer,SymbolStyle,SymbolStyleSearchResult,SyncGeodatabaseJob,UtilityNetwork,WebTiledLayer,WfsFeatureTable,WfsService,WmsLayer,WmsService,WmtsLayer,WmtsService
public interface RemoteResourceAn interface implemented by classes needing to access network-enabled resources which might be secured. For example, a web service or a file on a web server that could require credentials to access.An implementation must be able to set/get (1) a
Credentialto handle any authentication required by the network request and (2) aRequestConfigurationthat allows customization of the parameters used to make the network request. The implementation also has a URI, which is the URI used to request content from the network-enabled resource.- Since:
- 100.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CredentialgetCredential()Gets theCredentialthat is set on the network-enabled resource.RequestConfigurationgetRequestConfiguration()Gets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.StringgetUri()Gets the URI of thisRemoteResource.voidsetCredential(Credential credential)Sets aCredentialto be used by the network-enabled resource in the event of an authentication challenge.voidsetRequestConfiguration(RequestConfiguration requestConfiguration)Sets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.
-
-
-
Method Detail
-
getCredential
Credential getCredential()
Gets theCredentialthat is set on the network-enabled resource.Only applicable if the resource is secured.
- Returns:
- the Credential, or null if there is none
- Since:
- 100.0.0
-
setCredential
void setCredential(Credential credential)
Sets aCredentialto be used by the network-enabled resource in the event of an authentication challenge. The default credential is null.Only applicable if the resource is secured.
- Parameters:
credential- the Credential to be used for authentication- Since:
- 100.0.0
-
getRequestConfiguration
RequestConfiguration getRequestConfiguration()
Gets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.- Returns:
- the
RequestConfigurationused to modify network requests - Since:
- 100.0.0
-
setRequestConfiguration
void setRequestConfiguration(RequestConfiguration requestConfiguration)
Sets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource. If not set, the globalRequestConfigurationwill be used (seeRequestConfiguration.getGlobalRequestConfiguration()).- Parameters:
requestConfiguration- the RequestConfiguration used to modify network requests- Since:
- 100.0.0
-
getUri
String getUri()
Gets the URI of thisRemoteResource. Typically this is the URI used to instantiate the object.- Returns:
- the URI of this RemoteResource
- Since:
- 100.0.0
-
-