Package org.ametys.odf.rncp
Class AbstractRNCPAbstractProgramReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ServiceableReader
-
- org.ametys.odf.rncp.AbstractRNCPAbstractProgramReader
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,Reader
,SitemapModelComponent
,SitemapOutputComponent
- Direct Known Subclasses:
RNCPProgramReader
,RNCPSubProgramReader
public abstract class AbstractRNCPAbstractProgramReader extends ServiceableReader
Abstract reader for RNCP abstract program sheet.
-
-
Field Summary
-
Fields inherited from class org.apache.cocoon.reading.ServiceableReader
manager
-
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
-
Constructor Summary
Constructors Constructor Description AbstractRNCPAbstractProgramReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
generate()
String
getMimeType()
protected abstract String
getProgramId(Request request)
Get the program ID.protected abstract String
getSubProgramId(Request request)
Get the subProgram ID.void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.cocoon.reading.AbstractReader
getLastModified, recycle, setOutputStream, setup, shouldSetContentLength
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
AbstractRNCPAbstractProgramReader
public AbstractRNCPAbstractProgramReader()
-
-
Method Detail
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceSitemapOutputComponent
- Overrides:
getMimeType
in classAbstractReader
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableReader
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
getSubProgramId
protected abstract String getSubProgramId(Request request)
Get the subProgram ID.- Parameters:
request
- The request- Returns:
- The subprogram ID
-
getProgramId
protected abstract String getProgramId(Request request)
Get the program ID.- Parameters:
request
- The request- Returns:
- The program ID
-
-