Package org.ametys.core.cocoon
Class JSonReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ServiceableReader
-
- org.ametys.core.cocoon.JSonReader
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,Reader
,SitemapModelComponent
,SitemapOutputComponent
public class JSonReader extends ServiceableReader
Serialize as json
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECT_TO_READ
The map to-
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 JSonReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
String
getMimeType()
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
-
-
-
-
Field Detail
-
OBJECT_TO_READ
public static final String OBJECT_TO_READ
The map to
-
-
Constructor Detail
-
JSonReader
public JSonReader()
-
-
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
-
-