Class AclMethod

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

    public class AclMethod
    extends XMLResponseMethodBase
    ACL Method.
    • Field Detail

      • aces

        protected java.util.Vector aces
    • Constructor Detail

      • AclMethod

        public AclMethod()
        Method constructor.
      • AclMethod

        public AclMethod​(java.lang.String path)
        Method constructor.
    • Method Detail

      • addAce

        public void addAce​(Ace ace)
        Add an ace to the ace list which will be set by the method.
        Parameters:
        ace - Access control entry
      • recycle

        public void recycle()
        Description copied from class: XMLResponseMethodBase
        Reset the State of the class to its initial state, so that it can be used again.
        Specified by:
        recycle in interface org.apache.commons.httpclient.HttpMethod
        Overrides:
        recycle in class XMLResponseMethodBase
      • 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
        Throws:
        java.io.IOException
        org.apache.commons.httpclient.HttpException
      • generateRequestBody

        protected java.lang.String generateRequestBody()
        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
      • 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