org.apache.commons.httpclient.HttpMethod
public class OptionsMethod extends XMLResponseMethodBase
XMLResponseMethodBase.OptionsResponse, XMLResponseMethodBase.Response, XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse
Modifier and Type | Field | Description |
---|---|---|
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 |
effectiveVersion, statusLine
builder, decodeResponseHrefs, responseURLs
Constructor | Description |
---|---|
OptionsMethod() |
Method constructor.
|
OptionsMethod(java.lang.String path) |
Method constructor.
|
OptionsMethod(java.lang.String path,
int type) |
Method constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getEffectiveVersion, getFollowRedirects, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processCookieHeaders, processResponseBody, processStatusLine, readResponse, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine
isRequestContentAlreadySet, readContinueCode, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertElementToProperty, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponses, getResponseURLs, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody
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
public OptionsMethod()
public OptionsMethod(java.lang.String path)
public OptionsMethod(java.lang.String path, int type)
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 XMLResponseMethodBase
input
- Input streamjava.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.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 org.apache.commons.httpclient.HttpMethod
getName
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.HttpMethodBase
java.io.IOException
org.apache.commons.httpclient.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