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

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
      extended byorg.apache.jackrabbit.webdav.jcr.version.report.LocateCorrespondingNodeReport
All Implemented Interfaces:
org.apache.jackrabbit.webdav.version.report.Report, org.apache.jackrabbit.webdav.xml.XmlSerializable

public class LocateCorrespondingNodeReport
extends AbstractJcrReport

LocateCorrespondingNodeReport is used to identify the resource that represents the corresponding node in another workspace.

The request body must be a 'dcr:locate-corresponding-node' XML element, that contains the href of the source workspace, where the corresponding node should be searched:

 <!ELEMENT locate-corresponding-node ( workspace ) >
 <!ELEMENT workspace ( href ) >  (as defined by RFC 3253)
 
The response to a successful report request must be a 'dcr:locate-corresponding-node-report' element that contains the href of the corresponding node in the given source workspace:
 <!ELEMENT locate-corresponding-node-report ( href ) >
 

See Also:
Node.getCorrespondingNodePath(String)

Field Summary
static org.apache.jackrabbit.webdav.version.report.ReportType LOCATE_CORRESPONDING_NODE_REPORT
          The corresponding-node report type
 
Constructor Summary
LocateCorrespondingNodeReport()
           
 
Method Summary
 org.apache.jackrabbit.webdav.version.report.ReportType getType()
          Returns LOCATE_CORRESPONDING_NODE_REPORT
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATE_CORRESPONDING_NODE_REPORT

public static final org.apache.jackrabbit.webdav.version.report.ReportType LOCATE_CORRESPONDING_NODE_REPORT
The corresponding-node report type

Constructor Detail

LocateCorrespondingNodeReport

public LocateCorrespondingNodeReport()
Method Detail

getType

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

Returns:
always returns LOCATE_CORRESPONDING_NODE_REPORT
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns false.

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)
See Also:
XmlSerializable.toXml(Document)


Copyright © 2005-2006 . All Rights Reserved.