Class AbstractSecurityReport
- java.lang.Object
-
- org.apache.jackrabbit.webdav.version.report.AbstractReport
-
- org.apache.jackrabbit.webdav.security.report.AbstractSecurityReport
-
- All Implemented Interfaces:
Report
,XmlSerializable
- Direct Known Subclasses:
AclPrincipalReport
,PrincipalMatchReport
,PrincipalSearchReport
public abstract class AbstractSecurityReport extends AbstractReport
AbstractSecurityReport
covers basic validation and utilities common to the majority of the reports defined within RFC 3744.
-
-
Field Summary
Fields Modifier and Type Field Description protected MultiStatusResponse[]
responses
-
Constructor Summary
Constructors Constructor Description AbstractSecurityReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(DavResource resource, ReportInfo info)
Checks if the given resource and report info are notnull
, that the requested report type matches this implementation and that no other Depth header than 0 is present.boolean
isMultiStatusReport()
Always returns true.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
-
responses
protected MultiStatusResponse[] responses
-
-
Method Detail
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returns true.- Returns:
- true
-
init
public void init(DavResource resource, ReportInfo info) throws DavException
Checks if the given resource and report info are notnull
, that the requested report type matches this implementation and that no other Depth header than 0 is present.- Parameters:
resource
-info
-- Throws:
DavException
-
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:
- DAV:multistatus element listing the matching resources.
- See Also:
XmlSerializable.toXml(Document)
-
-