public class ContentResourceReader extends Object implements ResourceReader
| Constructor and Description |
|---|
ContentResourceReader(List<StorageProvider> storageProviders) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(StorageProvider storageProvider) |
String |
getDescription()
Returns a description of the describable item.
|
String |
getId()
Returns the name, aka ID, of the describable item.
|
Set<String> |
getOptions(Metacard metacard)
Obtain a set of all options supported by this ResourceReader.
|
String |
getOrganization()
Returns the organization associated with the describable item.
|
Set<String> |
getSupportedSchemes()
|
String |
getTitle()
Returns the title of the describable item.
|
String |
getVersion()
Retrieve the version.
|
ResourceResponse |
retrieveResource(URI resourceUri,
Map<String,Serializable> arguments)
|
void |
unbind(StorageProvider storageProvider) |
public ContentResourceReader(List<StorageProvider> storageProviders)
public void bind(StorageProvider storageProvider)
public void unbind(StorageProvider storageProvider)
public String getDescription()
DescribablegetDescription in interface Describablepublic String getId()
Describablehtml for a MetacardTransformer that transforms Metacards to HTMLgetId in interface Describablepublic String getOrganization()
DescribablegetOrganization in interface Describablepublic String getTitle()
DescribablegetTitle in interface Describablepublic String getVersion()
DescribablegetVersion in interface Describablepublic Set<String> getOptions(Metacard metacard)
ResourceReaderResource in a unique way.getOptions in interface ResourceReaderSet of all options that this ResourceReader supports. This will be an empty set
if no options are supported.public Set<String> getSupportedSchemes()
ResourceReaderURI schemes that the ResourceReader can accept when doing a Resource lookup. Custom schemes can be created for a ResourceReader to support.getSupportedSchemes in interface ResourceReaderSet of supported schemespublic ResourceResponse retrieveResource(URI resourceUri, Map<String,Serializable> arguments) throws IOException, ResourceNotFoundException, ResourceNotSupportedException
ResourceReaderretrieveResource in interface ResourceReaderresourceUri - A URI that defines what Resource to retrieve and how to do it.arguments - Any additional arguments that should be passed to the ResourceReader.ResourceResponse containing the retrieved Resource.IOExceptionResourceNotFoundExceptionResourceNotSupportedExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.