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()
Describable
getDescription
in interface Describable
public String getId()
Describable
html for a MetacardTransformer
that transforms Metacard
s to HTML
getId
in interface Describable
public String getOrganization()
Describable
getOrganization
in interface Describable
public String getTitle()
Describable
getTitle
in interface Describable
public String getVersion()
Describable
getVersion
in interface Describable
public Set<String> getOptions(Metacard metacard)
ResourceReader
Resource
in a unique way.getOptions
in interface ResourceReader
Set
of all options that this ResourceReader supports. This will be an empty set
if no options are supported.public Set<String> getSupportedSchemes()
ResourceReader
URI
schemes that the ResourceReader can accept when doing a Resource
lookup. Custom schemes can be created for a ResourceReader to support.getSupportedSchemes
in interface ResourceReader
Set
of supported schemespublic ResourceResponse retrieveResource(URI resourceUri, Map<String,Serializable> arguments) throws IOException, ResourceNotFoundException, ResourceNotSupportedException
ResourceReader
retrieveResource
in interface ResourceReader
resourceUri
- 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
.IOException
ResourceNotFoundException
ResourceNotSupportedException
This work is licensed under a Creative Commons Attribution 4.0 International License.