org.apache.webdav.lib.methods
Class OptionsMethod

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

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

OPTIONS Method.

Author:
Remy Maucherat

Field Summary
static java.lang.String ACL
          ACL.
static java.lang.String ADVANCED_COLLECTIONS
          Advanced collections.
static java.lang.String DASL
          DASL.
static java.lang.String DAV_LEVEL1
          DAV level 1.
static java.lang.String DAV_LEVEL2
          DAV level 2.
static java.lang.String DELTAV
          Delta V.
 
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
OptionsMethod()
          Method constructor.
OptionsMethod(java.lang.String path)
          Method constructor.
 
Method Summary
 java.lang.String generateQuery()
          Generate the query body.
 java.util.Enumeration getAllowedMethods()
          Get a list of allowed methods.
 java.util.Enumeration getDavCapabilities()
          Get a list of supported DAV capabilities.
 boolean isAllowed(java.lang.String method)
          Is the specified method allowed ?
 boolean isSupported(java.lang.String capability)
          Is DAV capability supported ?
 void parseResponse(java.io.InputStream is)
          Parse response.
 void processResponseHeaders(java.util.Hashtable headers)
          Process response headers.
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateHeaders, generateRequestLine, generateRequestLine, getHeader, getHeaders, getHeadersHashtable, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, hasResponseBody, isStreamedQuery, needContentLength, needExpectation, recycle, 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

DAV_LEVEL1

public static final java.lang.String DAV_LEVEL1
DAV level 1. Mandatory.

DAV_LEVEL2

public static final java.lang.String DAV_LEVEL2
DAV level 2.

ADVANCED_COLLECTIONS

public static final java.lang.String ADVANCED_COLLECTIONS
Advanced collections.

DELTAV

public static final java.lang.String DELTAV
Delta V.

ACL

public static final java.lang.String ACL
ACL.

DASL

public static final java.lang.String DASL
DASL.
Constructor Detail

OptionsMethod

public OptionsMethod()
Method constructor.

OptionsMethod

public OptionsMethod(java.lang.String path)
Method constructor.
Method Detail

isAllowed

public boolean isAllowed(java.lang.String method)
Is the specified method allowed ?

getAllowedMethods

public java.util.Enumeration getAllowedMethods()
Get a list of allowed methods.

isSupported

public boolean isSupported(java.lang.String capability)
Is DAV capability supported ?

getDavCapabilities

public java.util.Enumeration getDavCapabilities()
Get a list of supported DAV capabilities.

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