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, LogEnabled, Serviceable, InspectableSource, 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, eventAware, expires, manager, protocol, source, sourceUri, uri |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InspectableTraversableCachingSource
public InspectableTraversableCachingSource(CachingSourceFactory factory,
String protocol,
String uri,
String sourceUri,
InspectableSource source,
int expires,
String cacheName,
boolean async,
boolean eventAware)
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
readMeta
protected CachingSource.SourceMeta readMeta(Source source)
throws SourceException
- Description copied from class:
CachingSource
- Read meta data from source.
- Overrides:
readMeta
in class TraversableCachingSource
- Throws:
SourceException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.