Class RegisteredNamespacesReport

  • 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 RegisteredNamespacesReport
    extends AbstractJcrReport
    implements ItemResourceConstants
    RegisteredNamespacesReport let the client retrieve the namespaces registered on the repository.

    Request body:

     <!ELEMENT registerednamespaces EMPTY >
     
    Response body:
     <!ELEMENT registerednamespaces-report (namespace)* >
     <!ELEMENT namespace (prefix, uri) >
     <!ELEMENT prefix (#PCDATA) >
     <!ELEMENT uri (#PCDATA) >
     
    See Also:
    Workspace.getNamespaceRegistry()
    • Field Detail

      • REGISTERED_NAMESPACES_REPORT

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

      • RegisteredNamespacesReport

        public RegisteredNamespacesReport()
    • 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 registered namespace(s).
        Specified by:
        toXml in interface org.apache.jackrabbit.webdav.xml.XmlSerializable
        Parameters:
        document -
        Returns:
        Xml representation of the registered namespace(s) error occurs while retrieving the namespaces.
        See Also:
        XmlSerializable.toXml(Document)