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

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.components.source.impl.CachingSource
          extended byorg.apache.cocoon.components.source.impl.TraversableCachingSource
All Implemented Interfaces:
Initializable, Serviceable, Source, TraversableSource, XMLizable

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_FAIL_PARAM, CACHE_NAME_PARAM, cacheKey, cacheName, expires, fail, manager, protocol, source, sourceUri, uri
 
Constructor Summary
TraversableCachingSource(CachingSourceFactory factory, String protocol, String uri, String sourceUri, TraversableSource source, int expires, String cacheName, boolean async, CachingSourceValidityStrategy validityStrategy, boolean fail)
           
 
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, setValidityStrategy, toSAX
 
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
 
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,
                                CachingSourceValidityStrategy validityStrategy,
                                boolean fail)
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-2008 The Apache Software Foundation. All Rights Reserved.