org.apache.jackrabbit.webdav.security.report
Class AbstractSecurityReport

java.lang.Object
  extended by org.apache.jackrabbit.webdav.security.report.AbstractSecurityReport
All Implemented Interfaces:
Report, XmlSerializable
Direct Known Subclasses:
AclPrincipalReport, PrincipalMatchReport, PrincipalSearchReport

public abstract class AbstractSecurityReport
extends Object
implements Report

AbstractSecurityReport covers basic validation and utilities common to the majority of the reports defined within RFC 3744.


Field Summary
protected  MultiStatusResponse[] responses
           
 
Constructor Summary
AbstractSecurityReport()
           
 
Method Summary
 void init(DavResource resource, ReportInfo info)
          Checks if the given resource and report info are not null, 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 as Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.webdav.version.report.Report
getType
 

Field Detail

responses

protected MultiStatusResponse[] responses
Constructor Detail

AbstractSecurityReport

public AbstractSecurityReport()
Method Detail

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns true.

Specified by:
isMultiStatusReport in interface Report
Returns:
true

init

public void init(DavResource resource,
                 ReportInfo info)
          throws DavException
Checks if the given resource and report info are not null, that the requested report type matches this implementation and that no other Depth header than 0 is present.

Specified by:
init in interface Report
Parameters:
resource -
info -
Throws:
DavException

toXml

public Element toXml(Document document)
Description copied from interface: XmlSerializable
Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.

Specified by:
toXml in interface XmlSerializable
Parameters:
document - to be used as factory.
Returns:
DAV:multistatus element listing the matching resources.
See Also:
XmlSerializable.toXml(Document)


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