|
|||||||||
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.OptionsResponse, XMLResponseMethodBase.Response, XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse |
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 |
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(HttpState state,
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,
HttpState state,
HttpConnection conn)
Parse response. |
protected org.w3c.dom.Document |
parseResponseContent(java.io.InputStream is)
|
void |
processResponseHeaders(HttpState state,
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 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, HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
parseResponse
in class XMLResponseMethodBase
input
- Input stream
java.io.IOException
HttpException
public void processResponseHeaders(HttpState state, HttpConnection conn)
processResponseHeaders
in class HttpMethodBase
state
- the stateconn
- the connectionprotected java.lang.String generateRequestBody()
The default behavior simply returns an empty body.
generateRequestBody
in class XMLResponseMethodBase
public java.lang.String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
public void addRequestHeaders(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
addRequestHeaders
in class HttpMethodBase
java.io.IOException
HttpException
public 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 |