edu.yale.its.tp.portlets.calendar.processor
Class XSLTICalendarContentProcessorImpl

java.lang.Object
  extended by edu.yale.its.tp.portlets.calendar.processor.ICalendarContentProcessorImpl
      extended by edu.yale.its.tp.portlets.calendar.processor.XSLTICalendarContentProcessorImpl
All Implemented Interfaces:
IContentProcessor

public class XSLTICalendarContentProcessorImpl
extends ICalendarContentProcessorImpl

This IContentProcessor implementation uses XSLT to transform an XML stream into iCal. The iCal is then extracted into CalendarEvents.

Version:
$Header: XSLTICalendarContentProcessorImpl.java Exp $
Author:
Anthony Colebourne

Constructor Summary
XSLTICalendarContentProcessorImpl()
           
XSLTICalendarContentProcessorImpl(java.lang.String xslFile)
           
 
Method Summary
 java.util.Set<CalendarEvent> getEvents(java.lang.Long calendarId, net.fortuna.ical4j.model.Period period, java.io.InputStream in)
          Implementations should not return null (at a minimum return Collections.emptySet()).
 void setXslFile(java.lang.String xslFile)
           
protected  java.io.InputStream transformToICal(java.io.InputStream in)
           
 
Methods inherited from class edu.yale.its.tp.portlets.calendar.processor.ICalendarContentProcessorImpl
convertCalendarToEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTICalendarContentProcessorImpl

public XSLTICalendarContentProcessorImpl()

XSLTICalendarContentProcessorImpl

public XSLTICalendarContentProcessorImpl(java.lang.String xslFile)
Method Detail

getEvents

public java.util.Set<CalendarEvent> getEvents(java.lang.Long calendarId,
                                              net.fortuna.ical4j.model.Period period,
                                              java.io.InputStream in)
Description copied from interface: IContentProcessor
Implementations should not return null (at a minimum return Collections.emptySet()).

Specified by:
getEvents in interface IContentProcessor
Overrides:
getEvents in class ICalendarContentProcessorImpl
Returns:

transformToICal

protected final java.io.InputStream transformToICal(java.io.InputStream in)
                                             throws CalendarException
Throws:
CalendarException

setXslFile

public void setXslFile(java.lang.String xslFile)


Copyright © 2009 Jasig. All Rights Reserved.