org.jasig.schedassist.impl.caldav.xml
Class ReportResponseHandlerImpl
java.lang.Object
org.jasig.schedassist.impl.caldav.xml.ReportResponseHandlerImpl
public class ReportResponseHandlerImpl
- extends java.lang.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 java.lang.String |
CALDAV_NS
|
protected static java.lang.String |
CALENDAR_DATA
|
protected static java.lang.String |
ETAG
|
protected static java.lang.String |
HREF
|
protected org.apache.commons.logging.Log |
log
|
protected static java.lang.String |
WEBDAV_NS
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEBDAV_NS
protected static final java.lang.String WEBDAV_NS
- See Also:
- Constant Field Values
HREF
protected static final java.lang.String HREF
- See Also:
- Constant Field Values
ETAG
protected static final java.lang.String ETAG
- See Also:
- Constant Field Values
CALDAV_NS
protected static final java.lang.String CALDAV_NS
- See Also:
- Constant Field Values
CALENDAR_DATA
protected static final java.lang.String CALENDAR_DATA
- See Also:
- Constant Field Values
log
protected final org.apache.commons.logging.Log log
ReportResponseHandlerImpl
public ReportResponseHandlerImpl()
extractCalendars
public java.util.List<CalendarWithURI> extractCalendars(java.io.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(javax.xml.namespace.QName qname)
- Parameters:
qname -
- Returns:
- true if the argument is a WebDAV 'getetag' element
isWebdavHrefElement
protected boolean isWebdavHrefElement(javax.xml.namespace.QName qname)
- Parameters:
qname -
- Returns:
- true if the argument is a WebDAV 'href' element
isCalendarDataElement
protected boolean isCalendarDataElement(javax.xml.namespace.QName qname)
- Parameters:
qname -
- Returns:
- true if the argument is a CalDAV 'calendar-data' element
extractCalendar
protected net.fortuna.ical4j.model.Calendar extractCalendar(java.lang.String text)
- Parameters:
text -
- Returns:
- a
Calendar from the text, or null if not parseable
Copyright © 2012 Jasig. All Rights Reserved.