Class LocateCorrespondingNodeReport
- java.lang.Object
-
- org.apache.jackrabbit.webdav.version.report.AbstractReport
-
- org.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
-
- org.apache.jackrabbit.webdav.jcr.version.report.LocateCorrespondingNodeReport
-
- All Implemented Interfaces:
Report
,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
Fields Modifier and Type Field Description static ReportType
LOCATE_CORRESPONDING_NODE_REPORT
The corresponding-node report type
-
Constructor Summary
Constructors Constructor Description LocateCorrespondingNodeReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportType
getType()
ReturnsLOCATE_CORRESPONDING_NODE_REPORT
void
init(DavResource resource, ReportInfo info)
Performs basic validation checks common to all JCR specific reports.boolean
isMultiStatusReport()
Always returnsfalse
.Element
toXml(Document document)
Returns the xml representation of the implementing object asElement
.-
Methods inherited from class org.apache.jackrabbit.webdav.version.report.AbstractReport
normalizeResourceHref
-
-
-
-
Field Detail
-
LOCATE_CORRESPONDING_NODE_REPORT
public static final ReportType LOCATE_CORRESPONDING_NODE_REPORT
The corresponding-node report type
-
-
Method Detail
-
getType
public ReportType getType()
ReturnsLOCATE_CORRESPONDING_NODE_REPORT
- Returns:
- always returns
LOCATE_CORRESPONDING_NODE_REPORT
- See Also:
Report.getType()
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returnsfalse
.- 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 interfaceReport
- Overrides:
init
in classAbstractJcrReport
- Throws:
DavException
- See Also:
Report.init(DavResource, ReportInfo)
-
toXml
public Element toXml(Document document)
Description copied from interface:XmlSerializable
Returns the xml representation of the implementing object asElement
. The givenDocument
is used as factory and represents theowner document
of the returned DOM element.- Parameters:
document
- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(Document)
-
-