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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.source.impl.CachingSource
          extended by org.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/interfaces 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, eventAware, expires, manager, protocol, source, sourceUri, uri
 
Constructor Summary
TraversableCachingSource(CachingSourceFactory factory, String protocol, String uri, String sourceUri, TraversableSource source, int expires, String cacheName, boolean async, boolean eventAware)
           
 
Method Summary
protected  TraversableCachingSource createSource(String uri, String wrappedUri, Source wrapped)
           
 Source getChild(String name)
           
 Collection getChildren()
           
 String getName()
           
 Source getParent()
           
 boolean isCollection()
           
protected  CachingSource.SourceMeta readMeta(Source source)
          Read meta data from source.
 
Methods inherited from class org.apache.cocoon.components.source.impl.CachingSource
dispose, exists, getBinaryResponse, getCacheKey, getCacheValidities, getContentLength, getExpiration, getInputStream, getLastModified, getMimeType, getResponseMeta, getScheme, getSourceURI, getURI, getValidity, getXMLResponse, initialize, readBinaryResponse, 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(CachingSourceFactory factory,
                                String protocol,
                                String uri,
                                String sourceUri,
                                TraversableSource source,
                                int expires,
                                String cacheName,
                                boolean async,
                                boolean eventAware)
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,
                                                      String wrappedUri,
                                                      Source wrapped)
                                               throws SourceException
Throws:
SourceException

readMeta

protected CachingSource.SourceMeta readMeta(Source source)
                                     throws SourceException
Description copied from class: CachingSource
Read meta data from source.

Overrides:
readMeta in class CachingSource
Throws:
SourceException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.