org.apache.webdav.lib.methods
Class AclMethod

java.lang.Object
  |
  +--org.apache.commons.httpclient.HttpMethodBase
        |
        +--org.apache.webdav.lib.methods.AclMethod
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod

public class AclMethod
extends org.apache.commons.httpclient.HttpMethodBase

ACL Method.

Author:
Remy Maucherat, Dirk Verbeeck

Field Summary
protected  java.util.Vector aces
           
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
debug, followRedirects, name, parameters, path, query, queryString, requestHeaders, responseHeaders, state, statusCode, statusText
 
Fields inherited from interface org.apache.commons.httpclient.HttpMethod
PROTOCOL
 
Constructor Summary
AclMethod()
          Method constructor.
AclMethod(java.lang.String path)
          Method constructor.
 
Method Summary
 void addAce(Ace ace)
          Add an ace to the ace list which will be set by the method.
 void generateHeaders(java.lang.String host, org.apache.commons.httpclient.State state)
          Generate additional headers needed by the request.
 java.lang.String generateQuery()
          Generate the query body.
 void parseResponse(java.io.InputStream is)
          Parse response.
 void processResponseHeaders(java.util.Hashtable headers)
          Process response headers.
 void recycle()
          Recycle the method object, so that it can be reused again.
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateRequestLine, generateRequestLine, getHeader, getHeaders, getHeadersHashtable, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, hasResponseBody, isStreamedQuery, needContentLength, needExpectation, removeHeader, setDebug, setFollowRedirects, setHeader, setParameter, setPath, setQuery, setQueryString, setState, setStatusCode, setStatusText, setUsed, streamQuery, validate
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: org.apache.commons.httpclient.HttpMethodBase
Recycle the method object, so that it can be reused again. Any attempt to reuse an object without recycling it will throw a HttpException.
Overrides:
recycle in class org.apache.commons.httpclient.HttpMethodBase

generateHeaders

public void generateHeaders(java.lang.String host,
                            org.apache.commons.httpclient.State state)
Generate additional headers needed by the request.
Overrides:
generateHeaders in class org.apache.commons.httpclient.HttpMethodBase
Parameters:
host - the host
state - State token

generateQuery

public java.lang.String generateQuery()
Generate the query body.
Overrides:
generateQuery in class org.apache.commons.httpclient.HttpMethodBase
Returns:
String query

parseResponse

public void parseResponse(java.io.InputStream is)
                   throws java.io.IOException
Parse response.
Overrides:
parseResponse in class org.apache.commons.httpclient.HttpMethodBase
Parameters:
is - Input stream

processResponseHeaders

public void processResponseHeaders(java.util.Hashtable headers)
Process response headers. The contract of this method is that it only parses the response headers.
Overrides:
processResponseHeaders in class org.apache.commons.httpclient.HttpMethodBase
Parameters:
headers - Headers list