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_PATTERN
The 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 Source
getSource(String location, Map parameters)
void
release(Source source)
void
service(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
getSource
public Source getSource(String location, Map parameters) throws IOException, MalformedURLException
- Specified by:
getSource
in interfaceSourceFactory
- Throws:
IOException
MalformedURLException
-
release
public void release(Source source)
- Specified by:
release
in interfaceSourceFactory
-
-