org.apache.cocoon.components.source.impl
Class InspectableTraversableCachingSource
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.CachingSource
org.apache.cocoon.components.source.impl.TraversableCachingSource
org.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.
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InspectableTraversableCachingSource
public InspectableTraversableCachingSource(String protocol,
String uri,
InspectableSource source,
int expires,
String cacheName,
boolean async)
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.