Class AclReportMethod

java.lang.Object
org.apache.commons.httpclient.HttpMethodBase
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 Details

  • Constructor Details

    • AclReportMethod

      public AclReportMethod(String path, Collection propertyNames, int depth, int reportType)
      Parameters:
      path -
      propertyNames - requested properties
      depth -
      reportType - - one of the supported report types
  • Method Details

    • getName

      public 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()
    • setDepth

      public void setDepth(int depth)
      Description copied from interface: DepthSupport
      Depth setter.
      Specified by:
      setDepth in interface DepthSupport
      Parameters:
      depth - New depth value
      See Also:
    • getDepth

      public int getDepth()
      Description copied from interface: DepthSupport
      Depth getter.
      Specified by:
      getDepth in interface DepthSupport
      Returns:
      int depth value
      See Also:
    • setRequestHeader

      public void setRequestHeader(String headerName, 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 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:
      IOException
      org.apache.commons.httpclient.HttpException
    • generateRequestBody

      protected String generateRequestBody()
      Description copied from class: XMLResponseMethodBase
      DAV requests that contain a body must override this function to generate that body.

      The default behavior simply returns an empty body.

      Overrides:
      generateRequestBody in class XMLResponseMethodBase
      See Also: