Package org.ametys.odf.source
Class ODFViewSourceFactory
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.source.ODFViewSourceFactory
-
- All Implemented Interfaces:
LogEnabled,Component,Serviceable,SourceFactory
public class ODFViewSourceFactory extends AbstractLogEnabled implements SourceFactory, Serviceable
This factory looks for files in the WEB-INF/stylesheets directory and falls back to the default stylesheet . Use: odf-view://path_to_file
-
-
Field Summary
Fields Modifier and Type Field Description protected static Pattern__SOURCE_PATTERNThe regexp for a protocol-
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
-
-
Constructor Summary
Constructors Constructor Description ODFViewSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcegetSource(String location, Map parameters)voidrelease(Source source)voidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__SOURCE_PATTERN
protected static final Pattern __SOURCE_PATTERN
The regexp for a protocol
-
-
Constructor Detail
-
ODFViewSourceFactory
public ODFViewSourceFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getSource
public Source getSource(String location, Map parameters) throws IOException, MalformedURLException
- Specified by:
getSourcein interfaceSourceFactory- Throws:
IOExceptionMalformedURLException
-
release
public void release(Source source)
- Specified by:
releasein interfaceSourceFactory
-
-