org.jasig.schedassist.impl.caldav.xml
Class ReportResponseHandlerImpl

java.lang.Object
  extended by org.jasig.schedassist.impl.caldav.xml.ReportResponseHandlerImpl

public class ReportResponseHandlerImpl
extends Object

StaX based parser for handling the response body of ReportMethod requests. This class has a static initializer that sets CompatibilityHints.KEY_RELAXED_UNFOLDING to true.

Version:
$ Id: ReportResponseHandlerImpl.java $
Author:
Nicholas Blair

Field Summary
protected static String CALDAV_NS
           
protected static String CALENDAR_DATA
           
protected static String ETAG
           
protected static String HREF
           
protected  org.apache.commons.logging.Log log
           
protected static String WEBDAV_NS
           
 
Constructor Summary
ReportResponseHandlerImpl()
           
 
Method Summary
protected  net.fortuna.ical4j.model.Calendar extractCalendar(String text)
           
 List<CalendarWithURI> extractCalendars(InputStream inputStream)
          Extracts a List of Calendars from the InputStream, if present.
protected  boolean isCalendarDataElement(QName qname)
           
protected  boolean isWebdavEtagElement(QName qname)
           
protected  boolean isWebdavHrefElement(QName qname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBDAV_NS

protected static final String WEBDAV_NS
See Also:
Constant Field Values

HREF

protected static final String HREF
See Also:
Constant Field Values

ETAG

protected static final String ETAG
See Also:
Constant Field Values

CALDAV_NS

protected static final String CALDAV_NS
See Also:
Constant Field Values

CALENDAR_DATA

protected static final String CALENDAR_DATA
See Also:
Constant Field Values

log

protected final org.apache.commons.logging.Log log
Constructor Detail

ReportResponseHandlerImpl

public ReportResponseHandlerImpl()
Method Detail

extractCalendars

public List<CalendarWithURI> extractCalendars(InputStream inputStream)
Extracts a List of Calendars from the InputStream, if present.

Parameters:
inputStream -
Returns:
a never null, but possibly empty List of Calendars from the InputStream
Throws:
XmlParsingException - in the event the stream could not be properly parsed

isWebdavEtagElement

protected boolean isWebdavEtagElement(QName qname)
Parameters:
qname -
Returns:
true if the argument is a WebDAV 'getetag' element

isWebdavHrefElement

protected boolean isWebdavHrefElement(QName qname)
Parameters:
qname -
Returns:
true if the argument is a WebDAV 'href' element

isCalendarDataElement

protected boolean isCalendarDataElement(QName qname)
Parameters:
qname -
Returns:
true if the argument is a CalDAV 'calendar-data' element

extractCalendar

protected net.fortuna.ical4j.model.Calendar extractCalendar(String text)
Parameters:
text -
Returns:
a Calendar from the text, or null if not parseable


Copyright © 2011 Jasig. All Rights Reserved.