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

java.lang.Object
  extended by org.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
      extended by org.apache.jackrabbit.webdav.jcr.version.report.RegisteredNamespacesReport
All Implemented Interfaces:
ItemResourceConstants, Report, 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 Summary
static ReportType REGISTERED_NAMESPACES_REPORT
          The registered type of this report.
 
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.ItemResourceConstants
ATTR_VALUE_TYPE, EXCLUSIVE_SESSION, IMPORT_UUID_BEHAVIOR, 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, JCR_WORKSPACE_NAME, METHODS, NAMESPACE, PRIVILEGE_JCR_ADD_NODE, PRIVILEGE_JCR_READ, PRIVILEGE_JCR_REMOVE, PRIVILEGE_JCR_SET_PROPERTY, ROOT_ITEM_PATH, ROOT_ITEM_RESOURCEPATH, 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
RegisteredNamespacesReport()
           
 
Method Summary
 ReportType getType()
          Returns REGISTERED_NAMESPACES_REPORT type.
 void init(DavResource resource, 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 registered namespace(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGISTERED_NAMESPACES_REPORT

public static final ReportType REGISTERED_NAMESPACES_REPORT
The registered type of this report.

Constructor Detail

RegisteredNamespacesReport

public RegisteredNamespacesReport()
Method Detail

getType

public ReportType getType()
Returns REGISTERED_NAMESPACES_REPORT type.

Specified by:
getType in interface Report
Returns:
REGISTERED_NAMESPACES_REPORT
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns false.

Specified by:
isMultiStatusReport in interface Report
Returns:
false
See Also:
Report.isMultiStatusReport()

init

public void init(DavResource resource,
                 ReportInfo info)
          throws DavException
Description copied from class: AbstractJcrReport
Performs basic validation checks common to all JCR specific reports.

Specified by:
init in interface Report
Overrides:
init in class AbstractJcrReport
Throws:
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 XmlSerializable
Parameters:
document -
Returns:
Xml representation of the registered namespace(s) error occurs while retrieving the namespaces.
See Also:
XmlSerializable.toXml(Document)


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.