org.apache.lenya.cms.cocoon.source
Class ZipSourceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.cocoon.source.ZipSourceFactory
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.excalibur.source.SourceFactory

public class ZipSourceFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.excalibur.source.SourceFactory, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.service.Serviceable

Implementation of a Source that gets its content from and ZIP archive. A ZIP source can be reached using the zip:// pseudo-protocol. The syntax is zip://myFile.xml@myZip.zip (zip://[file]@[archive])

Since:
2.1.4
Version:
CVS $Id: ZipSourceFactory.java 30932 2004-07-29 17:35:38Z vgritsenko $
Author:
Reinhard Poetz

Field Summary
protected  org.apache.avalon.framework.service.ServiceManager manager
           
static java.lang.String ZIP_SOURCE_SCHEME
          The URL scheme, including the colon.
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
ZipSourceFactory()
           
 
Method Summary
 org.apache.excalibur.source.Source getSource(java.lang.String location, java.util.Map parameters)
           
 void release(org.apache.excalibur.source.Source source)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected org.apache.avalon.framework.service.ServiceManager manager

ZIP_SOURCE_SCHEME

public static final java.lang.String ZIP_SOURCE_SCHEME
The URL scheme, including the colon.

See Also:
Constant Field Values
Constructor Detail

ZipSourceFactory

public ZipSourceFactory()
Method Detail

getSource

public org.apache.excalibur.source.Source getSource(java.lang.String location,
                                                    java.util.Map parameters)
                                             throws java.io.IOException,
                                                    java.net.MalformedURLException
Specified by:
getSource in interface org.apache.excalibur.source.SourceFactory
Throws:
java.io.IOException
java.net.MalformedURLException

release

public void release(org.apache.excalibur.source.Source source)
Specified by:
release in interface org.apache.excalibur.source.SourceFactory

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.