org.apache.jackrabbit.webdav.jcr.version.report
Class RepositoryDescriptorsReport

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
      extended byorg.apache.jackrabbit.webdav.jcr.version.report.RepositoryDescriptorsReport
All Implemented Interfaces:
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) >
 

See Also:
Repository.getDescriptorKeys(), Repository.getDescriptor(String)

Field Summary
static org.apache.jackrabbit.webdav.version.report.ReportType REPOSITORY_DESCRIPTORS_REPORT
          The registered type of this report.
 
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.ItemResourceConstants
ATTR_VALUE_TYPE, COMPLIANCE_CLASS, EXCLUSIVE_SESSION, JCR_DEFINITION, JCR_DEPTH, JCR_INDEX, JCR_ISMODIFIED, JCR_ISNEW, JCR_LENGTH, JCR_LENGTHS, JCR_MIXINNODETYPES, JCR_NAME, JCR_NAMESPACES, JCR_PARENT, JCR_PATH, JCR_PRIMARYITEM, JCR_PRIMARYNODETYPE, JCR_REFERENCES, JCR_TYPE, JCR_UUID, JCR_VALUE, JCR_VALUES, JCR_VERSIONABLEUUID, METHODS, NAMESPACE, ROOT_ITEM_PATH, VERSIONSTORAGE_PATH, XML_DESCRIPTOR, XML_DESCRIPTORKEY, XML_DESCRIPTORVALUE, XML_EXCLUSIVE_SESSION_SCOPED, XML_LENGTH, XML_NAMESPACE, XML_PREFIX, XML_PRIMARYNODETYPE, XML_RELPATH, XML_REMOVEEXISTING, XML_URI, XML_VALUE
 
Constructor Summary
RepositoryDescriptorsReport()
           
 
Method Summary
 org.apache.jackrabbit.webdav.version.report.ReportType getType()
          Returns REPOSITORY_DESCRIPTORS_REPORT type.
 void init(org.apache.jackrabbit.webdav.DavResource resource, org.apache.jackrabbit.webdav.version.report.ReportInfo info)
          Performs basic validation checks common to all JCR specific reports.
 boolean isMultiStatusReport()
          Always returns false.
 Element toXml(Document document)
          Returns a Xml representation of the repository descriptors according to the info object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getType

public org.apache.jackrabbit.webdav.version.report.ReportType getType()
Returns REPOSITORY_DESCRIPTORS_REPORT type.

Specified by:
getType in interface org.apache.jackrabbit.webdav.version.report.Report
Returns:
REPOSITORY_DESCRIPTORS_REPORT
See Also:
Report.getType()

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
Parameters:
resource -
info -
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)


Copyright © 2005-2006 . All Rights Reserved.