Package ddf.catalog.resource
Interface ResourceReader
- All Superinterfaces:
Describable,org.codice.ddf.platform.services.common.Describable
- All Known Subinterfaces:
CatalogStore,ConnectedSource,FederatedSource,OAuthFederatedSource,RemoteSource
A ResourceReader is used to obtain a
Resource.
For example the
obtains a invalid reference
URLResourceReaderResource based on supported URI schemes.
- Author:
- Michael Menousek
-
Method Summary
Modifier and TypeMethodDescriptiongetOptions(Metacard metacard) Obtain a set of all options supported by this ResourceReader.retrieveResource(URI uri, Map<String, Serializable> arguments) Methods inherited from interface ddf.catalog.util.Describable
getDescription, getId, getOrganization, getTitle, getVersion
-
Method Details
-
retrieveResource
ResourceResponse retrieveResource(URI uri, Map<String, Serializable> arguments) throws IOException, ResourceNotFoundException, ResourceNotSupportedException- Parameters:
uri- AURIthat defines whatResourceto retrieve and how to do it.arguments- Any additional arguments that should be passed to the ResourceReader.- Returns:
- A
ResourceResponsecontaining the retrievedResource. - Throws:
IOExceptionResourceNotFoundExceptionResourceNotSupportedException
-
getSupportedSchemes
Returns a set ofURIschemes that the ResourceReader can accept when doing aResourcelookup. Custom schemes can be created for a ResourceReader to support.- Returns:
Setof supported schemes
-
getOptions
Obtain a set of all options supported by this ResourceReader. Options are used to obtain theResourcein a unique way.- Parameters:
metacard-- Returns:
Setof all options that this ResourceReader supports. This will be an empty set if no options are supported.
-