|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.HttpMethodBase
org.apache.webdav.lib.methods.HttpRequestBodyMethodBase
org.apache.webdav.lib.methods.XMLResponseMethodBase
org.apache.webdav.lib.methods.OptionsMethod
public class OptionsMethod
OPTIONS Method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
|---|
XMLResponseMethodBase.Response |
| 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. |
static int |
OPTIONS_VERSION_HISTORY
|
static int |
OPTIONS_WORKSPACE
|
| Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
|---|
builder, decodeResponseHrefs, responseURLs |
| Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
|---|
USER_AGENT |
| Constructor Summary | |
|---|---|
OptionsMethod()
Method constructor. |
|
OptionsMethod(java.lang.String path)
Method constructor. |
|
OptionsMethod(java.lang.String path,
int type)
Method constructor. |
|
| Method Summary | |
|---|---|
void |
addRequestHeaders(org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
|
protected java.lang.String |
generateRequestBody()
DAV requests that contain a body must override this function to generate that body. |
java.util.Enumeration |
getAllowedMethods()
Get a list of allowed methods. |
java.util.Enumeration |
getAllResponseURLs()
This method returns an enumeration of URL paths. |
java.util.Enumeration |
getDavCapabilities()
Get a list of supported DAV capabilities. |
java.lang.String |
getName()
|
java.util.Enumeration |
getResponseProperties()
|
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 input,
org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
Parse response. |
protected org.w3c.dom.Document |
parseResponseContent(java.io.InputStream is)
|
void |
processResponseHeaders(org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
Process response headers. |
| Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
|---|
convertElementToProperty, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponses, getResponseURLs, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody |
| Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase |
|---|
isRequestContentAlreadySet, readContinueCode, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody |
| Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
|---|
addAuthorizationRequestHeader, addContentLengthRequestHeader, addCookieRequestHeader, addHostRequestHeader, addProxyAuthorizationRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, fakeResponse, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getFollowRedirects, getHostConfiguration, getMethodRetryHandler, getPath, getProxyAuthenticationRealm, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isConnectionCloseForced, isHttp11, isStrictMode, processResponseBody, processStatusLine, readResponse, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DAV_LEVEL1
public static final java.lang.String DAV_LEVEL2
public static final java.lang.String ADVANCED_COLLECTIONS
public static final java.lang.String DELTAV
public static final java.lang.String ACL
public static final java.lang.String DASL
public static final int OPTIONS_WORKSPACE
public static final int OPTIONS_VERSION_HISTORY
| Constructor Detail |
|---|
public OptionsMethod()
public OptionsMethod(java.lang.String path)
public OptionsMethod(java.lang.String path,
int type)
| Method Detail |
|---|
public boolean isAllowed(java.lang.String method)
public java.util.Enumeration getAllowedMethods()
public boolean isSupported(java.lang.String capability)
public java.util.Enumeration getDavCapabilities()
public void parseResponse(java.io.InputStream input,
org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
parseResponse in class XMLResponseMethodBaseinput - Input stream
java.io.IOException
org.apache.commons.httpclient.HttpException
public void processResponseHeaders(org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
processResponseHeaders in class org.apache.commons.httpclient.HttpMethodBasestate - the stateconn - the connectionprotected java.lang.String generateRequestBody()
The default behavior simply returns an empty body.
generateRequestBody in class XMLResponseMethodBasepublic java.lang.String getName()
getName in interface org.apache.commons.httpclient.HttpMethodgetName in class org.apache.commons.httpclient.HttpMethodBase
public void addRequestHeaders(org.apache.commons.httpclient.HttpState state,
org.apache.commons.httpclient.HttpConnection conn)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
addRequestHeaders in class org.apache.commons.httpclient.HttpMethodBasejava.io.IOException
org.apache.commons.httpclient.HttpExceptionpublic java.util.Enumeration getAllResponseURLs()
<D:href> elements
of the response.
public java.util.Enumeration getResponseProperties()
protected org.w3c.dom.Document parseResponseContent(java.io.InputStream is)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||