Class RepositoryDescriptorsReport

  • All Implemented Interfaces:
    org.apache.jackrabbit.commons.webdav.JcrRemotingConstants, ItemResourceConstants, org.apache.jackrabbit.webdav.version.report.Report, org.apache.jackrabbit.webdav.xml.XmlSerializable

    public class RepositoryDescriptorsReport
    extends AbstractJcrReport
    implements ItemResourceConstants
    RepositoryDescriptorsReport allows to retrieve the repository descriptors. The request body must be an empty 'dcr:repositorydescriptors' element:
     <!ELEMENT repositorydescriptors EMPTY >
     

    The response body must match the following format
     <!ELEMENT repositorydescriptors-report ( descriptor )* >
     <!ELEMENT descriptor ( descriptorkey, descriptorvalue+ ) >
     <!ELEMENT descriptorkey (#PCDATA) >
     <!ELEMENT descriptorvalue (#PCDATA) >
     <!ATTLIST descriptorvalue
          type ( Reference | Path | Name | Boolean | String | Date | Double |
                   Long | Binary | WeakReference | URI | Decimal )
       >
     
    See Also:
    Repository.getDescriptorKeys(), Repository.getDescriptor(String), Repository.getDescriptorValue(String), Repository.getDescriptorValues(String)
    • Field Detail

      • REPOSITORY_DESCRIPTORS_REPORT

        public static final org.apache.jackrabbit.webdav.version.report.ReportType REPOSITORY_DESCRIPTORS_REPORT
        The registered type of this report.
    • Constructor Detail

      • RepositoryDescriptorsReport

        public RepositoryDescriptorsReport()
    • Method Detail

      • isMultiStatusReport

        public boolean isMultiStatusReport()
        Always returns false.
        Specified by:
        isMultiStatusReport in interface org.apache.jackrabbit.webdav.version.report.Report
        Returns:
        false
        See Also:
        Report.isMultiStatusReport()
      • init

        public void init​(org.apache.jackrabbit.webdav.DavResource resource,
                         org.apache.jackrabbit.webdav.version.report.ReportInfo info)
                  throws org.apache.jackrabbit.webdav.DavException
        Description copied from class: AbstractJcrReport
        Performs basic validation checks common to all JCR specific reports.
        Specified by:
        init in interface org.apache.jackrabbit.webdav.version.report.Report
        Overrides:
        init in class AbstractJcrReport
        Throws:
        org.apache.jackrabbit.webdav.DavException
        See Also:
        Report.init(DavResource, ReportInfo)
      • toXml

        public Element toXml​(Document document)
        Returns a Xml representation of the repository descriptors according to the info object.
        Specified by:
        toXml in interface org.apache.jackrabbit.webdav.xml.XmlSerializable
        Parameters:
        document -
        Returns:
        Xml representation of the repository descriptors
        See Also:
        XmlSerializable.toXml(Document)