Package org.ametys.core.cocoon
Class RuntimeResourceReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ResourceReader
-
- org.ametys.core.cocoon.RuntimeResourceReader
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Configurable
,LogEnabled
,Serviceable
,CacheableProcessingComponent
,Reader
,SitemapModelComponent
,SitemapOutputComponent
- Direct Known Subclasses:
SiteResourceReader
public class RuntimeResourceReader extends ResourceReader implements Serviceable
Resource reader but where the source resolver is the runtime one.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceManager
_manager
the avalon service managerstatic String
LAST_MODIFIED
last modified parameter name for resources parameters-
Fields inherited from class org.apache.cocoon.reading.ResourceReader
bufferSize, byteRanges, configuredBufferSize, configuredByteRanges, configuredExpires, configuredQuickTest, expires, inputSource, quickTest, request, response
-
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
-
Constructor Summary
Constructors Constructor Description RuntimeResourceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
Serializable
getKey()
void
service(ServiceManager manager)
void
setup(SourceResolver initialResolver, Map cocoonObjectModel, String src, Parameters par)
-
Methods inherited from class org.apache.cocoon.reading.ResourceReader
configure, getLastModified, getMimeType, getValidity, hasRanges, parameterize, processStream, recycle, setupHeaders
-
Methods inherited from class org.apache.cocoon.reading.AbstractReader
setOutputStream, shouldSetContentLength
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
LAST_MODIFIED
public static final String LAST_MODIFIED
last modified parameter name for resources parameters- See Also:
- Constant Field Values
-
_manager
protected ServiceManager _manager
the avalon service manager
-
-
Constructor Detail
-
RuntimeResourceReader
public RuntimeResourceReader()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
public void setup(SourceResolver initialResolver, Map cocoonObjectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
- Specified by:
setup
in interfaceSitemapModelComponent
- Overrides:
setup
in classResourceReader
- Throws:
ProcessingException
SAXException
IOException
-
getKey
public Serializable getKey()
- Specified by:
getKey
in interfaceCacheableProcessingComponent
- Overrides:
getKey
in classResourceReader
-
generate
public void generate() throws IOException, ProcessingException
- Specified by:
generate
in interfaceReader
- Overrides:
generate
in classResourceReader
- Throws:
IOException
ProcessingException
-
-