public final class XMLUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
STYLE_CLASS_EMPTY_DAY |
static String |
STYLE_CLASS_SMALLMONTH_DAY |
static String |
STYLE_CLASS_SUFFIX_OFF |
static String |
STYLE_CLASS_SUFFIX_OLD |
static String |
STYLE_CLASS_SUFFIX_TODAY |
static String |
STYLE_CLASS_VIEW_MONTH_DAY |
static String |
STYLE_CLASS_VIEW_WEEK_DAY |
Modifier and Type | Method and Description |
---|---|
static String |
getAgendaXml(String strAgenda,
javax.servlet.http.HttpServletRequest request)
Returns the Xml code of a calendar events
|
static String |
getRssXml(CalendarFilter filter)
Returns the Xml code for RSS
|
static String |
getXml(List<Event> listEvents)
Returns the Xml code of the Calendar portlet without XML heading
|
static String |
getXMLPortletCalendar(Locale local,
Calendar cal,
javax.servlet.http.HttpServletRequest request)
Get the XML of a calendar
|
static byte[] |
transformXMLToXSL(String strXml,
InputStream baSource,
Map<String,String> params,
Properties outputProperties)
This method performs XSL Transformation.
|
public static final String STYLE_CLASS_VIEW_MONTH_DAY
public static final String STYLE_CLASS_VIEW_WEEK_DAY
public static final String STYLE_CLASS_SMALLMONTH_DAY
public static final String STYLE_CLASS_SUFFIX_OLD
public static final String STYLE_CLASS_SUFFIX_TODAY
public static final String STYLE_CLASS_SUFFIX_OFF
public static final String STYLE_CLASS_EMPTY_DAY
public static String getAgendaXml(String strAgenda, javax.servlet.http.HttpServletRequest request)
strAgenda
- The id of the agendarequest
- request servlet requestpublic static String getRssXml(CalendarFilter filter)
filter
- The filterpublic static String getXml(List<Event> listEvents)
listEvents
- The list of eventspublic static byte[] transformXMLToXSL(String strXml, InputStream baSource, Map<String,String> params, Properties outputProperties) throws Exception
strXml
- The input XML documentbaSource
- The source input streamparams
- parameters to apply to the XSL StylesheetoutputProperties
- properties to use for the xsl transform. Will
overload the xsl output definition.Exception
- The exceptionCopyright © 2018 City of Paris. All rights reserved.