Class CalendarIframeGenerator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.xml.AbstractXMLProducer
-
- org.apache.cocoon.generation.AbstractGenerator
-
- org.ametys.plugins.googlecalendar.CalendarIframeGenerator
-
- All Implemented Interfaces:
Poolable,Recyclable,Component,LogEnabled,Generator,SitemapModelComponent,XMLProducer
public class CalendarIframeGenerator extends AbstractGenerator
Google calendar iframe generator
-
-
Field Summary
Fields Modifier and Type Field Description private static String__CALENDAR_SERVER_URLprivate static String__CTZprivate static String__DEFAULT_BGCOLORprivate static String__DEFAULT_COLORprivate static String__DEFAULT_HEIGHTprivate static String__DEFAULT_MODEprivate static String__DOES_NOT_SHOW_PARAMprivate static String__HEIGHT_PARAM-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description CalendarIframeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String_buildURL(Map<String,String> urlParams)private Map<String,String>_getParametersAsMap()private String_getParameterValue(String name, String defaultValue)private String_getSrcAttrValue()voidgenerate()-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
__CALENDAR_SERVER_URL
private static final String __CALENDAR_SERVER_URL
- See Also:
- Constant Field Values
-
__CTZ
private static final String __CTZ
- See Also:
- Constant Field Values
-
__DEFAULT_COLOR
private static final String __DEFAULT_COLOR
- See Also:
- Constant Field Values
-
__DEFAULT_BGCOLOR
private static final String __DEFAULT_BGCOLOR
- See Also:
- Constant Field Values
-
__DEFAULT_HEIGHT
private static final String __DEFAULT_HEIGHT
- See Also:
- Constant Field Values
-
__DEFAULT_MODE
private static final String __DEFAULT_MODE
- See Also:
- Constant Field Values
-
__DOES_NOT_SHOW_PARAM
private static final String __DOES_NOT_SHOW_PARAM
- See Also:
- Constant Field Values
-
__HEIGHT_PARAM
private static final String __HEIGHT_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CalendarIframeGenerator
public CalendarIframeGenerator()
-
-
Method Detail
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_getSrcAttrValue
private String _getSrcAttrValue()
-
_getParametersAsMap
private Map<String,String> _getParametersAsMap()
-
_getParameterValue
private String _getParameterValue(String name, String defaultValue)
-
-