org.apache.jackrabbit.webdav.jcr.version.report
Class LocateByUuidReport
java.lang.Object
org.apache.jackrabbit.webdav.jcr.version.report.LocateByUuidReport
- All Implemented Interfaces:
- org.apache.jackrabbit.webdav.version.report.Report
- public class LocateByUuidReport
- extends Object
- implements org.apache.jackrabbit.webdav.version.report.Report
LocateByUuidReport
handles REPORT requests for the 'locate-by-uuid'
report.
The request body must be a 'dcr:locate-by-uuid' XML element:
<!ELEMENT locate-by-uuid ( href , prop? ) >
The response to a successful report request will be a Multi-Status response.
Field Summary |
static org.apache.jackrabbit.webdav.version.report.ReportType |
LOCATE_BY_UUID_REPORT
The exportview report type |
Method Summary |
org.apache.jackrabbit.webdav.version.report.ReportType |
getType()
Returns LOCATE_BY_UUID_REPORT report type. |
void |
setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo info)
|
void |
setResource(org.apache.jackrabbit.webdav.version.DeltaVResource resource)
|
org.jdom.Document |
toXml()
Creates a Xml document from the generated view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCATE_BY_UUID_REPORT
public static final org.apache.jackrabbit.webdav.version.report.ReportType LOCATE_BY_UUID_REPORT
- The exportview report type
LocateByUuidReport
public LocateByUuidReport()
getType
public org.apache.jackrabbit.webdav.version.report.ReportType getType()
- Returns
LOCATE_BY_UUID_REPORT
report type.
- Specified by:
getType
in interface org.apache.jackrabbit.webdav.version.report.Report
- Returns:
LOCATE_BY_UUID_REPORT
- See Also:
Report.getType()
setResource
public void setResource(org.apache.jackrabbit.webdav.version.DeltaVResource resource)
- Specified by:
setResource
in interface org.apache.jackrabbit.webdav.version.report.Report
- Parameters:
resource
-
- Throws:
IllegalArgumentException
- if the resource is null
or
if the session object provided with the resource is null
.- See Also:
Report.setResource(org.apache.jackrabbit.webdav.version.DeltaVResource)
setInfo
public void setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo info)
- Specified by:
setInfo
in interface org.apache.jackrabbit.webdav.version.report.Report
- Parameters:
info
-
- Throws:
IllegalArgumentException
- if the specified info
object does not contain a dcr
:locate-by-uuid element.- See Also:
Report.setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo)
toXml
public org.jdom.Document toXml()
throws org.apache.jackrabbit.webdav.DavException
- Creates a Xml document from the generated view.
- Specified by:
toXml
in interface org.apache.jackrabbit.webdav.version.report.Report
- Returns:
- Xml document representing the output of the specified view.
- Throws:
org.apache.jackrabbit.webdav.DavException
- if the report document could not be created.- See Also:
Report.toXml()
Copyright © 2005 . All Rights Reserved.