Class SupportedReportSetProperty

java.lang.Object
org.apache.jackrabbit.webdav.property.AbstractDavProperty<Set<ReportType>>
org.apache.jackrabbit.webdav.version.report.SupportedReportSetProperty
All Implemented Interfaces:
DavConstants, DavProperty<Set<ReportType>>, PropEntry, XmlSerializable

public class SupportedReportSetProperty extends AbstractDavProperty<Set<ReportType>>
SupportedReportSetProperty represents the DAV:supported-report-set property defined by RFC 3253. It identifies the reports that are supported by the given resource.
 <!ELEMENT supported-report-set (supported-report*)>
 <!ELEMENT supported-report report>
 <!ELEMENT report ANY>
 ANY value: a report element type
 
  • Constructor Details

    • SupportedReportSetProperty

      public SupportedReportSetProperty()
      Create a new empty SupportedReportSetProperty.
    • SupportedReportSetProperty

      public SupportedReportSetProperty(ReportType[] reportTypes)
      Create a new SupportedReportSetProperty property.
      Parameters:
      reportTypes - that are supported by the resource having this property.
  • Method Details

    • addReportType

      public void addReportType(ReportType reportType)
      Add an additional report type to this property's value.
      Parameters:
      reportType -
    • isSupportedReport

      public boolean isSupportedReport(ReportInfo reqInfo)
      Returns true if the report type indicated in the specified RequestInfo object is included in the supported reports.
      Parameters:
      reqInfo -
      Returns:
      true if the requested report is supported.
    • getValue

      public Set<ReportType> getValue()
      Returns a set of report types.
      Returns:
      set of ReportType.
      See Also:
    • toXml

      public Element toXml(Document document)
      Returns the Xml representation of this property.
      Specified by:
      toXml in interface XmlSerializable
      Overrides:
      toXml in class AbstractDavProperty<Set<ReportType>>
      Parameters:
      document -
      Returns:
      Xml representation listing all supported reports
      See Also: