- All Known Implementing Classes:
AnnotationLayer,ArcGISMapImageLayer,ArcGISMapImageSublayer,ArcGISSceneLayer,ArcGISStreamService,ArcGISSublayer,ArcGISTiledElevationSource,ArcGISTiledLayer,ArcGISTiledSublayer,ArcGISVectorTiledLayer,Basemap,BingMapsLayer,ClosestFacilityTask,DictionarySymbolStyle,DimensionLayer,DownloadPreplannedOfflineMapJob,DynamicEntityDataSource,ElevationSource,EstimateTileCacheSizeJob,ExportTileCacheJob,ExportTileCacheTask,ExportVectorTilesJob,ExportVectorTilesTask,GenerateGeodatabaseJob,GenerateOfflineMapJob,GeodatabaseSyncTask,GeoprocessingDataFile,GeoprocessingFeatures,GeoprocessingJob,GeoprocessingRaster,GeoprocessingTask,ImageFrame,ImageServiceRaster,IntegratedMeshLayer,Job,KmlDataset,LocatorTask,ModelSceneSymbol,OfflineMapSyncJob,OfflineMapSyncTask,OfflineMapTask,Ogc3DTilesLayer,OgcFeatureCollectionTable,OgcFeatureService,OpenStreetMapLayer,PictureFillSymbol,PictureFillSymbolLayer,PictureMarkerSymbol,PictureMarkerSymbolLayer,PointCloudLayer,Portal,RasterElevationSource,RouteTask,ServiceAreaTask,ServiceFeatureTable,ServiceGeodatabase,ServiceImageTiledLayer,SubtypeSublayer,SymbolStyle,SymbolStyleSearchResult,SyncGeodatabaseJob,UtilityNetwork,UtilityNetworkValidationJob,WebTiledLayer,WfsFeatureTable,WfsService,WmsLayer,WmsService,WmtsLayer,WmtsService
public interface RemoteResource
An 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 Credential to handle any authentication required
by the network request and (2) a RequestConfiguration that 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
Modifier and TypeMethodDescriptionGets theCredentialthat is set on the network-enabled resource.Gets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.getUri()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 Details
-
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
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
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
-