org.apache.cocoon.components.source.impl
Class TraversableCachingSource

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.source.impl.CachingSource
          extended byorg.apache.cocoon.components.source.impl.TraversableCachingSource
All Implemented Interfaces:
Initializable, LogEnabled, Serviceable, Source, TraversableSource, XMLizable
Direct Known Subclasses:
InspectableTraversableCachingSource

public class TraversableCachingSource
extends CachingSource
implements TraversableSource

Traversable version of CachingSource.


Nested Class Summary
protected static class TraversableCachingSource.TraversableSourceMeta
           
 
Nested classes inherited from class org.apache.cocoon.components.source.impl.CachingSource
CachingSource.SourceMeta
 
Field Summary
 
Fields inherited from class org.apache.cocoon.components.source.impl.CachingSource
async, cache, CACHE_EXPIRES_PARAM, CACHE_NAME_PARAM, cacheKey, cacheName, expires, freshMeta, manager, protocol, response, source, uri
 
Constructor Summary
TraversableCachingSource(String protocol, String uri, TraversableSource source, int expires, String cacheName, boolean async)
           
 
Method Summary
protected  CachingSource.SourceMeta createMeta()
           
protected  TraversableCachingSource createSource(String uri, Source wrapped)
           
 Source getChild(String name)
           
 Collection getChildren()
           
 String getName()
           
 Source getParent()
           
protected  void initializeSource(TraversableCachingSource source)
           
protected  void initMeta(CachingSource.SourceMeta meta, Source source)
           
 boolean isCollection()
           
protected  TraversableCachingSource newSource(String uri, Source wrapped)
           
protected  void remove()
           
 
Methods inherited from class org.apache.cocoon.components.source.impl.CachingSource
dispose, exists, getCacheKey, getContentLength, getExpiration, getInputStream, getLastModified, getMimeType, getScheme, getSourceURI, getURI, getValidity, initBinaryResponse, initialize, initMetaResponse, initXMLResponse, readBinaryResponse, readMeta, readXMLResponse, refresh, service, toSAX
 
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
 
Methods inherited from interface org.apache.excalibur.source.Source
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 

Constructor Detail

TraversableCachingSource

public TraversableCachingSource(String protocol,
                                String uri,
                                TraversableSource source,
                                int expires,
                                String cacheName,
                                boolean async)
Method Detail

getName

public String getName()
Specified by:
getName in interface TraversableSource

isCollection

public boolean isCollection()
Specified by:
isCollection in interface TraversableSource

getChild

public Source getChild(String name)
                throws SourceException
Specified by:
getChild in interface TraversableSource
Throws:
SourceException

getChildren

public Collection getChildren()
                       throws SourceException
Specified by:
getChildren in interface TraversableSource
Throws:
SourceException

getParent

public Source getParent()
                 throws SourceException
Specified by:
getParent in interface TraversableSource
Throws:
SourceException

createSource

protected final TraversableCachingSource createSource(String uri,
                                                      Source wrapped)
                                               throws SourceException
Throws:
SourceException

newSource

protected TraversableCachingSource newSource(String uri,
                                             Source wrapped)

initializeSource

protected void initializeSource(TraversableCachingSource source)
                         throws SourceException
Throws:
SourceException

createMeta

protected CachingSource.SourceMeta createMeta()
Overrides:
createMeta in class CachingSource

initMeta

protected void initMeta(CachingSource.SourceMeta meta,
                        Source source)
                 throws IOException
Overrides:
initMeta in class CachingSource
Throws:
IOException

remove

protected void remove()
Overrides:
remove in class CachingSource


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.