Class AclReportMethod

  • All Implemented Interfaces:
    org.apache.commons.httpclient.HttpMethod, DepthSupport

    public class AclReportMethod
    extends XMLResponseMethodBase
    implements DepthSupport
    WebDAV Report method This class is used to send an report from the ACL specification. In this version only the principal-property-search is supported.
    • Field Detail

      • PRINCIPAL_PROPERTY_SEARCH

        public static final int PRINCIPAL_PROPERTY_SEARCH
        See Also:
        Constant Field Values
    • Constructor Detail

      • AclReportMethod

        public AclReportMethod​(java.lang.String path,
                               java.util.Collection propertyNames,
                               int depth,
                               int reportType)
        Parameters:
        path -
        propertyNames - requested properties
        depth -
        reportType - - one of the supported report types
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.apache.commons.httpclient.HttpMethod
        Specified by:
        getName in class org.apache.commons.httpclient.HttpMethodBase
        See Also:
        HttpMethod.getName()
      • setRequestHeader

        public void setRequestHeader​(java.lang.String headerName,
                                     java.lang.String headerValue)
        Set a header value, redirecting the special case of header "Depth" to setDepth(int) as appropriate.
        Specified by:
        setRequestHeader in interface org.apache.commons.httpclient.HttpMethod
        Overrides:
        setRequestHeader in class org.apache.commons.httpclient.HttpMethodBase
        Parameters:
        headerName - Header name
        headerValue - Header value
      • addRequestHeaders

        public void addRequestHeaders​(org.apache.commons.httpclient.HttpState state,
                                      org.apache.commons.httpclient.HttpConnection conn)
                               throws java.io.IOException,
                                      org.apache.commons.httpclient.HttpException
        Generate additional headers needed by the request.
        Overrides:
        addRequestHeaders in class org.apache.commons.httpclient.HttpMethodBase
        Parameters:
        state - State token
        conn - The connection being used for the request.
        Throws:
        java.io.IOException
        org.apache.commons.httpclient.HttpException