org.apache.cocoon.components.source.impl
Class ZipSourceFactory
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.components.source.impl.ZipSourceFactory
- All Implemented Interfaces:
- Serviceable, SourceFactory, ThreadSafe
- public class ZipSourceFactory
- extends org.apache.cocoon.util.AbstractLogEnabled
- implements SourceFactory, ThreadSafe, Serviceable
Implementation of a Source
that gets its content from
a ZIP archive.
A ZIP source can be obtained using the zip:
pseudo-protocol.
The syntax for protocol is
zip:[archive-url]!/[file-path]
Where, archive-url
can be any supported Cocoon URL, and
file-path
is the path to the file within archive.
- Since:
- 2.1.8
- Version:
- $Id: ZipSourceFactory.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipSourceFactory
public ZipSourceFactory()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
getSource
public Source getSource(String location,
Map parameters)
throws IOException
- Specified by:
getSource
in interface SourceFactory
- Throws:
IOException
release
public void release(Source source)
- Specified by:
release
in interface SourceFactory
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.