|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HttpMethodBase | +--org.apache.webdav.lib.methods.MkcolMethod
The MKCOL method is used to create a new collection. All DAV compliant resources must support the MKCOL method. Collections are merely the HTTP name for structures like directories or folders (and, in fact, often map directly to a folder or directory on the web server.
This implementation of a MKCOL client method does not support a a request body, and the newly created web collection should therefore have no members.
MKCOL creates a new collection resource at the location specified by
the Request-URI. If the resource identified by the Request-URI already
exists on the server then the MKCOL will fail. During MKCOL processing,
a server will make the Request-URI a member of the URI's parent collection
(unless the Request-URI is "/"). If no parent collection exists, the method
will fail. Thus, for example, if a request to create collection
/a/b/c/d/
is made, and neither /a/b/
nor
/a/b/c/
exists, the request will fail.
MKCOL is not idempotent (that is to say, each MKCOL request should be handled by the web server, and the results of a MKCOL request should not be cached).
MKCOL /webdisc/xfiles/ HTTP/1.1 Host: www.server.org
HTTP/1.1 201 Created
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 | |
MkcolMethod()
Method constructor. |
|
MkcolMethod(java.lang.String path)
Method constructor. |
Method Summary | |
void |
parseResponse(java.io.InputStream is)
Parse the response body. |
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateHeaders, generateQuery, generateRequestLine, generateRequestLine, getHeader, getHeaders, getHeadersHashtable, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, hasResponseBody, isStreamedQuery, needContentLength, needExpectation, processResponseHeaders, recycle, removeHeader, setDebug, setFollowRedirects, setHeader, setParameter, setPath, setQuery, setQueryString, setState, setStatusCode, setStatusText, setUsed, streamQuery, validate |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public MkcolMethod()
public MkcolMethod(java.lang.String path)
Method Detail |
public void parseResponse(java.io.InputStream is) throws java.io.IOException
parseResponse
in class org.apache.commons.httpclient.HttpMethodBase
is
- Input stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |