public class DefaultODFView extends AbstractLogEnabled implements ODFViewSelector, Serviceable
ODFViewSelector
.
First looks the wanted file in context://WEB-INF/stylesheets/path_to_file
If it's not present, it will look in the ODF plugin.Modifier and Type | Field and Description |
---|---|
protected SourceResolver |
_resolver
The source resolver
|
ROLE
Constructor and Description |
---|
DefaultODFView() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
_getDefaultSourceURIs(String pluginName,
String filePath)
Get the default URIs
|
protected List<String> |
getLocations(String pluginName,
String filePath)
Returns the ordered list of URI to be tested to find the corresponding view.
|
Source |
getSource(String pluginName,
String filePath)
Get the file source for rendering a content
|
void |
service(ServiceManager manager) |
getLogger, setLogger
protected SourceResolver _resolver
public DefaultODFView()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Source getSource(String pluginName, String filePath) throws IOException
ODFViewSelector
getSource
in interface ODFViewSelector
pluginName
- the plugin namefilePath
- the path of the file to retrieveIOException
- if the Source cannot be resolvedprotected List<String> getLocations(String pluginName, String filePath)
pluginName
- the plugin namefilePath
- the requested location.protected List<String> _getDefaultSourceURIs(String pluginName, String filePath)
pluginName
- The current plugin namefilePath
- the requested location.