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

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
              extended byorg.apache.cocoon.components.source.impl.InspectableTraversableCachingSource
All Implemented Interfaces:
Initializable, InspectableSource, LogEnabled, Serviceable, Source, TraversableSource, XMLizable

public class InspectableTraversableCachingSource
extends TraversableCachingSource
implements InspectableSource

TraversableCachingSource that adds support for SourceProperty caching.


Nested Class Summary
protected static class InspectableTraversableCachingSource.InspectableSourceMeta
           
 
Nested classes inherited from class org.apache.cocoon.components.source.impl.TraversableCachingSource
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
InspectableTraversableCachingSource(String protocol, String uri, InspectableSource source, int expires, String cacheName, boolean async)
           
 
Method Summary
protected  CachingSource.SourceMeta createMeta()
           
 SourceProperty[] getSourceProperties()
          Get alll informations
 SourceProperty getSourceProperty(String namespace, String name)
          To get a meta information from a source
protected  void initMeta(CachingSource.SourceMeta meta, Source source)
           
protected  TraversableCachingSource newSource(String uri, Source wrapped)
           
 void removeSourceProperty(String namespace, String name)
          Remove property
 void setSourceProperty(SourceProperty property)
          To set a meta information
 
Methods inherited from class org.apache.cocoon.components.source.impl.TraversableCachingSource
createSource, getChild, getChildren, getName, getParent, initializeSource, isCollection, 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

InspectableTraversableCachingSource

public InspectableTraversableCachingSource(String protocol,
                                           String uri,
                                           InspectableSource source,
                                           int expires,
                                           String cacheName,
                                           boolean async)
Method Detail

getSourceProperty

public SourceProperty getSourceProperty(String namespace,
                                        String name)
                                 throws SourceException
Description copied from interface: InspectableSource
To get a meta information from a source

Specified by:
getSourceProperty in interface InspectableSource
Throws:
SourceException

setSourceProperty

public void setSourceProperty(SourceProperty property)
                       throws SourceException
Description copied from interface: InspectableSource
To set a meta information

Specified by:
setSourceProperty in interface InspectableSource
Throws:
SourceException

getSourceProperties

public SourceProperty[] getSourceProperties()
                                     throws SourceException
Description copied from interface: InspectableSource
Get alll informations

Specified by:
getSourceProperties in interface InspectableSource
Throws:
SourceException

removeSourceProperty

public void removeSourceProperty(String namespace,
                                 String name)
                          throws SourceException
Description copied from interface: InspectableSource
Remove property

Specified by:
removeSourceProperty in interface InspectableSource
Throws:
SourceException

createMeta

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

initMeta

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

newSource

protected TraversableCachingSource newSource(String uri,
                                             Source wrapped)
Overrides:
newSource in class TraversableCachingSource


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