|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.webdav.lib.WebdavSession | +--org.apache.webdav.lib.WebdavResource
The class WebdavResource
is an abstract representation
for WebDAV resource.
A functional comparison of WebdavResource and JDK(It's different a lot). ----------------------------------+------------------------------------- File class (JDK 1.3.x) | WebdavResource class ----------------------------------+------------------------------------- File(String) | WebdavResource(HttpURL) File(String, String) | X (need to escape) File(File, String) | WebdavResource(HttpURL, String) getName() | *see getHttpURL() and HttpURL getParaent() | *see getHttpURL() and HttpURL getParentFile() | X (not yet) getPath() | *see getHttpURL() and HttpURL isAbsolute() | X getAbsolutePath() | getAbsoluteFile() | X getCanonicalPath() | getCanonicalFile() | X toURL() | *see HttpURL canRead() | !canWrite() | !isLocked() exists() | exists() isDirectory() | isCollection() isFile() | !isCollection() isHidden() | getIsHidden() lastModified() | getGetLastModified() length() | getGetContentLength() createNewFile() | putMethod(String) delete() | deleteMethod() deleteOnExit() | X list() | list() list(FilenameFilter) | X listFiles() | listWebdavResources() listFiles(FilenameFilter) | X listFiles(FileFilter) | X mkdir() | mkcolMethod() mkdirs() | mkcolMethod() renameTo(File) | moveMethod(String) setLastModified() | X setReadOnly() | setOverwrite(boolean) listRoots() | *see WebdavSession generateFile() | createTempFile(...) | setGetTempDir(String) compareTo(Object) | compareTo(Object) equals(Object) | equals(Object) hashCode() | X ----------------------------------+------------------------------------- URL class (JDK 1.3.x) | Webdavresource and HttpURL classes ----------------------------------+------------------------------------- getQuery() | getQuery() getPath() | getPath() getUserInfo() | getUserInfo() getAuthority() | getAuthority() getPort() | getPort() getProtocol() | getScheme() getHost() | getHost() getFile() | getPath() getRef() | getFragmenet() hashCode() | X sameFile() | toExternalForm() | toExternalForm() openConnection() | openStream() | getContent() | getMethodDataAsString() ----------------------------------+------------------------------------- URLConnection class (JDK 1.3.x) | HttpClient Library and more ----------------------------------+------------------------------------- getFileNameMap() | X setFileNameMap() | X connect() | getURL() | HttpURL#getURL() getContenetLength()() | getContentType() | getContentEncoding() | getExpiration() | getDate() | getLastModified() | getHeaderField() | getHeaderFieldInt() | X getHeaderFielDate() | X getHeaderFieldKey() | X getHeaderFiled(int) | X getContenet() | getInputStream() | WebdavResource#getMethodData() getOutputStream() | WebdavResource#putMethod(...) setDoInput() | X getDoInput() | X setAllowUserInteraction() | *see WebdavException and WebdavStatus getAllowUserInteraction() | *see WebdavException and WebdavStatus setUseCaches() | getUseCaches() | getIfModifiedSince() | X setIfModifiedSince(boolean) | X setRequestProperty(...) | X getRequestProperty(...) | X guessContentTypeFromStream(...) | X ----------------------------------+-------------------------------------
Field Summary | |
static int |
ALL
The action setting the all properties for this resource. |
static int |
BASIC
The action setting the basic properties for this resource. |
static java.lang.String |
CREATIONDATE
The creationdate property. |
static int |
DEFAULT
The action setting the default DAV properties for this resource. |
static java.lang.String |
defaultOwner
Owner information for locking and unlocking. |
static java.lang.String |
DISPLAYNAME
The displayname property. |
static java.lang.String |
FALSE
The false constant string. |
static java.text.SimpleDateFormat[] |
formats
Date formats using for Date parsing. |
static java.lang.String |
GETCONTENTLENGTH
The getcontentlength property. |
static java.lang.String |
GETCONTENTTYPE
The getcontenttype property. |
static java.lang.String |
GETETAG
The getetag property. |
static java.lang.String |
GETLASTMODIFIED
The getlastmodifed property. |
protected static java.util.TimeZone |
gmtZone
GMT timezone. |
static java.lang.String |
ISCOLLECTION
The iscollection property. |
static java.lang.String |
ISHIDDEN
The ishidden property. |
static java.lang.String |
LOCKDISCOVERY
The lockdiscovery property. |
static int |
NAME
The action setting only the displayname for this resource. |
static int |
NOACTION
No action to find properties for this resource. |
static java.lang.String |
RESOURCETYPE
The resourcetype property. |
static java.lang.String |
SUPPORTEDLOCK
The supportedlock property. |
static java.lang.String |
TRUE
The true constant string. |
Fields inherited from class org.apache.webdav.lib.WebdavSession |
client, debug |
Constructor Summary | |
WebdavResource(org.apache.util.HttpURL httpURL)
The constructor. |
|
WebdavResource(org.apache.util.HttpURL httpURL,
int depth)
The constructor. |
|
WebdavResource(org.apache.util.HttpURL httpURL,
int action,
int depth)
The constructor. |
|
WebdavResource(org.apache.util.HttpURL httpURL,
java.lang.String additionalPath)
The constructor. |
|
WebdavResource(java.lang.String escapedHttpURL)
The constructor. |
Method Summary | |
(package private) static void |
|
AclProperty |
aclfindMethod(java.lang.String path)
Return the AclProperty for the resource at the given path returns null if the server doesn't respond with a AclProperty |
boolean |
aclMethod(java.lang.String path,
Ace[] aces)
Updates the resource with a new set of aces |
void |
close()
Close the session of this client |
int |
compareTo(java.lang.Object another)
Compare to the given another object. |
int |
compareToWebdavResource(WebdavResource another)
|
boolean |
copyMethod(java.lang.String destination)
|
boolean |
copyMethod(java.lang.String source,
java.lang.String destination)
|
boolean |
deleteMethod()
|
boolean |
deleteMethod(java.lang.String path)
|
boolean |
equals(java.lang.Object obj)
Test the object. |
int |
executeHttpRequestMethod(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method)
Execute the http request method. |
boolean |
exists()
|
java.util.Enumeration |
getActiveLockOwners()
Get the activelock owners for this resource. |
java.util.Enumeration |
getAllowedMethods()
Get the allowed methods, checked by HTTP OPTIONS. |
WebdavResources |
getChildResources()
|
long |
getCreationDate()
Get the value of DAV property, creationdate. |
java.util.Enumeration |
getDavCapabilities()
Get the WebDAV capabilities, checked by HTTP OPTIONS. |
static int |
getDefaultAction()
Get the default action. |
static int |
getDefaultDepth()
Get the default action. |
java.lang.String |
getDisplayName()
Get the value of DAV property, displayname. |
boolean |
getExistence()
|
long |
getGetContentLength()
Get the value of DAV property, getcontentlength. |
java.lang.String |
getGetContentType()
Get the value of DAV property, getcontenttype. |
java.lang.String |
getGetEtag()
Get the value of DAV property, getetag. |
long |
getGetLastModified()
Get the value of DAV property, getlastmodified. |
static java.lang.String |
getGetTempDir()
Get the default temporary directory for the GET method. |
static boolean |
getGetUseDisk()
Get the use disk flag for the GET method. |
java.lang.String |
getHost()
Get the hostname of this WebdavResource. |
org.apache.util.HttpURL |
getHttpURL()
Get the HttpURL of this WebdavResource. |
org.apache.util.HttpURL |
getHttpURLExceptForUserInfo()
Get the HttpURL except for userinfo. |
boolean |
getIsCollection()
Get the value of DAV property, iscollection |
boolean |
getIsHidden()
Get the value of DAV property, ishidden. |
LockDiscoveryProperty |
getLockDiscovery()
Get the value of DAV property, lockdiscovery. |
boolean |
getMethod(java.io.File file)
|
boolean |
getMethod(java.lang.String path,
java.io.File file)
|
java.io.InputStream |
getMethodData()
|
java.lang.String |
getMethodDataAsString()
|
boolean |
getOverwrite()
Get the current value of the overwrite flag for COPY and MOVE. |
java.lang.String |
getPath()
Get the path part of this WebdavResource. |
ResourceTypeProperty |
getResourceType()
Get the value of DAV property, resourcetype. |
int |
getStatusCode()
Get the lastest value of the status code by HTTP methods. |
java.lang.String |
getStatusMessage()
Get the lastest value of the status message by HTTP methods. |
java.lang.String |
getSupportedLock()
Get the value of DAV property, supportedlock. |
boolean |
headMethod()
|
boolean |
headMethod(java.lang.String path)
|
boolean |
isCollection()
Get the value of DAV property, resourcetype |
boolean |
isLocked()
Test that this resource is locked. |
java.lang.String[] |
list()
Get an array of pathnames denoting the WebDAV resources in the collection denoted by this pathname. |
java.util.Vector |
listBasic()
|
WebdavResource[] |
listWebdavResources()
Get an array of resources denoting the WebDAV child resources in the collection of this resources. |
LockDiscoveryProperty |
lockDiscoveryPropertyFindMethod(java.lang.String path)
Return the LockDiscoveryProperty for the resource at the given path returns null if the server doesn't respond with a LockDiscoveryProperty |
boolean |
lockMethod()
|
boolean |
lockMethod(java.lang.String path)
|
boolean |
lockMethod(java.lang.String owner,
short timeout)
|
boolean |
lockMethod(java.lang.String path,
java.lang.String owner,
short timeout)
|
boolean |
mkcolMethod()
|
boolean |
mkcolMethod(java.lang.String path)
|
boolean |
moveMethod(java.lang.String destination)
|
boolean |
moveMethod(java.lang.String source,
java.lang.String destination)
|
boolean |
optionsMethod()
|
java.util.Enumeration |
optionsMethod(org.apache.util.HttpURL httpURL)
|
boolean |
optionsMethod(java.lang.String path)
|
boolean |
optionsMethod(java.lang.String path,
java.lang.String aMethod)
|
PrincipalCollectionSetProperty |
principalCollectionSetFindMethod(java.lang.String path)
Return the PrincipalCollectionSetProperty for the resource at the given path returns null if the server doesn't respond with a PrincipalCollectionSetProperty |
java.util.Enumeration |
propfindMethod(int depth)
|
java.util.Enumeration |
propfindMethod(int depth,
java.util.Vector properties)
|
java.util.Enumeration |
propfindMethod(java.lang.String propertyName)
|
java.util.Enumeration |
propfindMethod(java.lang.String path,
int depth)
|
java.util.Enumeration |
propfindMethod(java.lang.String path,
int depth,
java.util.Vector properties)
|
java.util.Enumeration |
propfindMethod(java.lang.String path,
java.lang.String propertyName)
|
java.util.Enumeration |
propfindMethod(java.lang.String path,
java.util.Vector properties)
|
java.util.Enumeration |
propfindMethod(java.util.Vector properties)
|
boolean |
proppatchMethod(java.util.Hashtable properties)
|
boolean |
proppatchMethod(PropertyName propertyName,
java.lang.String propertyValue)
|
boolean |
proppatchMethod(java.lang.String path,
java.util.Hashtable properties)
|
boolean |
proppatchMethod(java.lang.String path,
PropertyName propertyName,
java.lang.String propertyValue)
|
boolean |
proppatchMethod(java.lang.String propertyName,
java.lang.String propertyValue)
|
boolean |
proppatchMethod(java.lang.String path,
java.lang.String propertyName,
java.lang.String propertyValue)
|
boolean |
putMethod(byte[] data)
Execute the PUT method for this resource. |
boolean |
putMethod(java.io.File file)
|
boolean |
putMethod(java.io.InputStream is)
Execute the PUT method for this resource. |
boolean |
putMethod(java.lang.String data)
|
boolean |
putMethod(java.lang.String path,
byte[] data)
Execute the PUT method for the given path. |
boolean |
putMethod(java.lang.String path,
java.io.File file)
|
boolean |
putMethod(java.lang.String path,
java.io.InputStream is)
Execute the PUT method for the given path. |
boolean |
putMethod(java.lang.String path,
java.lang.String data)
|
boolean |
putMethod(java.lang.String path,
java.net.URL url)
|
boolean |
putMethod(java.net.URL url)
|
org.apache.commons.httpclient.HttpClient |
retrieveSessionInstance()
Retrieve the current http client for this resource. |
void |
setCreationDate(long creationDate)
Set the value of DAV property, creationdate. |
void |
setCreationDate(java.lang.String creationDate)
Set the value of DAV property, creationdate. |
static void |
setDefaultAction(int action)
Set the default action for this resource. |
static void |
setDefaultDepth(int depth)
Set the default action for this resource. |
void |
setDisplayName(java.lang.String displayName)
Set the value of DAV property, displayname. |
void |
setEncodeURLs(boolean encodeURLs)
Set the URL encoding flag for this http URL. |
void |
setExistence(boolean exists)
|
void |
setGetContentLength(long getContentLength)
Set the value of DAV property, getcontentlength. |
void |
setGetContentLength(java.lang.String getContentLength)
Set the value of DAV property, getcontentlength. |
void |
setGetContentType(java.lang.String getContentType)
Set the value of DAV property, getcontenttype. |
void |
setGetEtag(java.lang.String getEtag)
Set the value of DAV property, getetag. |
void |
setGetLastModified(long getLastModified)
Set the value of DAV property, getlastmodified. |
void |
setGetLastModified(java.lang.String getLastModified)
Set the value of DAV property, getlastmodified. |
static void |
setGetTempDir(java.lang.String tempDir)
Get the default temporary directory for the GET method. |
static void |
setGetUseDisk(boolean useDisk)
Set the use disk flag for the GET method. |
void |
setHttpURL(org.apache.util.HttpURL httpURL)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(org.apache.util.HttpURL httpURL,
int depth)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(org.apache.util.HttpURL httpURL,
int action,
int depth)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(org.apache.util.HttpURL httpURL,
java.lang.String additionalPath)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(org.apache.util.HttpURL httpURL,
java.lang.String additionalPath,
int action)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(org.apache.util.HttpURL httpURL,
java.lang.String additionalPath,
int action,
int depth)
Set the HttpURL for this WebdavResource. |
void |
setHttpURL(java.lang.String escapedHttpURL)
Set the HttpURL of this WebdavResource. |
void |
setIsCollection(boolean isCollection)
Set the value of DAV property, iscollection |
void |
setIsCollection(java.lang.String isCollection)
Set the value of DAV property, iscollection |
void |
setIsHidden(boolean isHidden)
Set the value of DAV property, ishidden. |
void |
setIsHidden(java.lang.String isHidden)
Set the value of DAV property, ishidden. |
void |
setLockDiscovery(LockDiscoveryProperty lockDiscovery)
Set the value of DAV property, lockdiscovery. |
void |
setOverwrite(boolean overwrite)
Set the overwrite flag for COPY and MOVE. |
void |
setPath(java.lang.String path)
Set the path part of this WebdavResource. |
void |
setProperties(int depth)
Set the properties for this resource. |
void |
setProperties(int action,
int depth)
Set the properties for this resource. |
void |
setResourceType(ResourceTypeProperty resourceType)
Set the value of DAV property, resourcetype. |
void |
setStatusCode(int statusCode)
Set the lastest value of the status code by HTTP methods. |
void |
setStatusCode(int statusCode,
java.lang.String message)
Set the lastest value of the status code by HTTP methods. |
void |
setSupportedLock(java.lang.String supportedLock)
Set the value of DAV property, supportedlock. |
void |
setUserInfo(java.lang.String userName,
java.lang.String password)
Set the userinfo part of this WebdavResource. |
java.lang.String |
toString()
Return the http URL string. |
boolean |
unlockMethod()
|
boolean |
unlockMethod(java.lang.String path)
|
Methods inherited from class org.apache.webdav.lib.WebdavSession |
authenticate, closeSession, closeSession, connect, disconnect, error, getSessionInstance, getSessionInstance, info, receivedExpectation, receivedResponse, requiredAuthentication, retry, sentRequest, setDebug |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DISPLAYNAME
public static final java.lang.String GETCONTENTLENGTH
public static final java.lang.String GETLASTMODIFIED
public static final java.lang.String CREATIONDATE
public static final java.lang.String RESOURCETYPE
public static final java.lang.String GETCONTENTTYPE
public static final java.lang.String GETETAG
public static final java.lang.String ISHIDDEN
public static final java.lang.String ISCOLLECTION
public static final java.lang.String SUPPORTEDLOCK
public static final java.lang.String LOCKDISCOVERY
public static final int NOACTION
public static final int NAME
public static final int BASIC
public static final int DEFAULT
public static final int ALL
public static final java.lang.String defaultOwner
public static final java.lang.String TRUE
public static final java.lang.String FALSE
public static final java.text.SimpleDateFormat[] formats
protected static final java.util.TimeZone gmtZone
Constructor Detail |
public WebdavResource(org.apache.util.HttpURL httpURL, int action, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified http URL.action
- The action to set properties of this resource.depth
- The depth to find properties.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public WebdavResource(org.apache.util.HttpURL httpURL, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified http URL.depth
- The depth to find properties.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public WebdavResource(org.apache.util.HttpURL httpURL) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified http URL.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public WebdavResource(java.lang.String escapedHttpURL) throws org.apache.commons.httpclient.HttpException, java.io.IOException
escapedHttpURL
- The escaped http URL string.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public WebdavResource(org.apache.util.HttpURL httpURL, java.lang.String additionalPath) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The http URL.additionalPath
- The added relative path.org.apache.commons.httpclient.HttpException
- java.io.IOException
- Method Detail |
static void()
public static void setDefaultAction(int action)
action
- The action type.public static int getDefaultAction()
public static void setDefaultDepth(int depth)
depth
- The depth.public static int getDefaultDepth()
public static void setGetTempDir(java.lang.String tempDir)
tempDir
- The temporary directory.public static java.lang.String getGetTempDir()
public static void setGetUseDisk(boolean useDisk)
useDisk
- The use disk flag.public static boolean getGetUseDisk()
public void setHttpURL(org.apache.util.HttpURL httpURL, int action, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- the specified HttpURL.action
- The action to decide properties to find.depth
- The depth to find properties.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(org.apache.util.HttpURL httpURL, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- the specified HttpURL.depth
- The depth to find properties.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(org.apache.util.HttpURL httpURL, java.lang.String additionalPath, int action, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified HttpURL.additionalPath
- The added relative path.action
- The action to decide properties to find.depth
- The depth.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(org.apache.util.HttpURL httpURL, java.lang.String additionalPath, int action) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified HttpURL.additionalPath
- The added relative path.action
- The action to decide properties to find.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(org.apache.util.HttpURL httpURL, java.lang.String additionalPath) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- The specified HttpURL.additionalPath
- The added relative path.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(org.apache.util.HttpURL httpURL) throws org.apache.commons.httpclient.HttpException, java.io.IOException
httpURL
- the specified HttpURL.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public void setHttpURL(java.lang.String escapedHttpURL) throws org.apache.commons.httpclient.HttpException, java.io.IOException
escapedHttpURL
- The escaped http URL string.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(HttpURL)
,
setUserInfo(java.lang.String, java.lang.String)
,
setPath(java.lang.String)
public org.apache.util.HttpURL getHttpURL()
public org.apache.util.HttpURL getHttpURLExceptForUserInfo() throws java.net.MalformedURLException
public void setPath(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
path
- the specified path.org.apache.commons.httpclient.HttpException
- java.io.IOException
- setHttpURL(HttpURL)
,
setHttpURL(java.lang.String)
,
setUserInfo(java.lang.String, java.lang.String)
public java.lang.String getPath()
setPath(java.lang.String)
public java.lang.String getHost() throws java.net.MalformedURLException
java.net.MalformedURLException
- public void setUserInfo(java.lang.String userName, java.lang.String password) throws org.apache.commons.httpclient.HttpException, java.io.IOException
java.net.MalformedURLException
- java.io.IOException
- setHttpURL(HttpURL)
,
setHttpURL(java.lang.String)
,
setPath(java.lang.String)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- The displayname string.public long getGetContentLength()
public void setGetContentLength(long getContentLength)
getContentLength
- The getcontentlength value.public void setGetContentLength(java.lang.String getContentLength)
getContentLength
- The getcontentlength value.public ResourceTypeProperty getResourceType()
isCollection()
public void setResourceType(ResourceTypeProperty resourceType)
resourceType
- The resourcetype property.public boolean isCollection()
getResourceType()
,
getIsCollection()
public java.lang.String getGetContentType()
public void setGetContentType(java.lang.String getContentType)
getContentType
- The getcontenttype string.public long getGetLastModified()
public void setGetLastModified(long getLastModified)
getLastModified
- The getlastmodified value.setGetLastModified(java.lang.String)
public void setGetLastModified(java.lang.String getLastModified)
getLastModified
- The getlastmodified value.setGetLastModified(long)
public long getCreationDate()
public void setCreationDate(long creationDate)
creationDate
- The creationdate string.public void setCreationDate(java.lang.String creationDate)
creationDate
- The creationdate string.public java.lang.String getGetEtag()
public void setGetEtag(java.lang.String getEtag)
getEtag
- The getetag string.public java.lang.String getSupportedLock()
public void setSupportedLock(java.lang.String supportedLock)
supportedLock
- The supportedlock string.public LockDiscoveryProperty getLockDiscovery()
public void setLockDiscovery(LockDiscoveryProperty lockDiscovery)
lockdiscovery
- The lockdiscovery property.public java.util.Enumeration getActiveLockOwners()
public boolean isLocked()
public boolean getIsHidden()
public void setIsHidden(boolean isHidden)
isHidden
- public void setIsHidden(java.lang.String isHidden)
isHidden
- public boolean getIsCollection()
isCollection()
public void setIsCollection(boolean isCollection)
isCollection
- public void setIsCollection(java.lang.String isCollection)
isCollection
- public void setProperties(int action, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
action
- The action to find properties for this resource.depth
- The depth.public void setProperties(int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
action
- The action to find properties for this resource.public boolean exists()
public void setExistence(boolean exists)
public boolean getExistence()
public void setOverwrite(boolean overwrite)
public boolean getOverwrite()
public void close() throws java.io.IOException
public java.lang.String getStatusMessage()
public int getStatusCode()
public void setStatusCode(int statusCode)
statusCode
- the HTTP status code.public void setStatusCode(int statusCode, java.lang.String message)
statusCode
- the HTTP status code.message
- the additional message.public java.util.Enumeration getAllowedMethods()
optionsMethod(java.lang.String)
public java.util.Enumeration getDavCapabilities()
optionsMethod(java.lang.String)
public WebdavResources getChildResources() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public WebdavResource[] listWebdavResources() throws org.apache.commons.httpclient.HttpException, java.io.IOException
org.apache.commons.httpclient.HttpException
- java.io.IOException
- public java.lang.String[] list()
public java.util.Vector listBasic() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public void setEncodeURLs(boolean encodeURLs) throws java.net.MalformedURLException, java.io.IOException
encodeURLs
- true if it is encoded.java.net.MalformedURLException
- java.io.IOException
- public org.apache.commons.httpclient.HttpClient retrieveSessionInstance() throws java.io.IOException
executeHttpRequestMethod(HttpClient, HttpMethod)
public int executeHttpRequestMethod(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method) throws java.io.IOException, org.apache.commons.httpclient.HttpException
client
- The http client.method
- The http method.retrieveSessionInstance()
public boolean aclMethod(java.lang.String path, Ace[] aces) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public AclProperty aclfindMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public PrincipalCollectionSetProperty principalCollectionSetFindMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public LockDiscoveryProperty lockDiscoveryPropertyFindMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.io.InputStream getMethodData() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.lang.String getMethodDataAsString() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean getMethod(java.io.File file) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean getMethod(java.lang.String path, java.io.File file) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(byte[] data) throws org.apache.commons.httpclient.HttpException, java.io.IOException
data
- The byte array.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public boolean putMethod(java.lang.String path, byte[] data) throws org.apache.commons.httpclient.HttpException, java.io.IOException
path
- The path string.data
- The byte array.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public boolean putMethod(java.io.InputStream is) throws org.apache.commons.httpclient.HttpException, java.io.IOException
is
- The input stream.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public boolean putMethod(java.lang.String path, java.io.InputStream is) throws org.apache.commons.httpclient.HttpException, java.io.IOException
path
- The path string.is
- The input stream.org.apache.commons.httpclient.HttpException
- java.io.IOException
- public boolean putMethod(java.lang.String data) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(java.lang.String path, java.lang.String data) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(java.io.File file) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(java.lang.String path, java.io.File file) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(java.net.URL url) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean putMethod(java.lang.String path, java.net.URL url) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean optionsMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean optionsMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean optionsMethod(java.lang.String path, java.lang.String aMethod) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration optionsMethod(org.apache.util.HttpURL httpURL) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.lang.String path, int depth) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(int depth, java.util.Vector properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.lang.String path, int depth, java.util.Vector properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.lang.String propertyName) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.lang.String path, java.lang.String propertyName) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.util.Vector properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public java.util.Enumeration propfindMethod(java.lang.String path, java.util.Vector properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(java.lang.String propertyName, java.lang.String propertyValue) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(PropertyName propertyName, java.lang.String propertyValue) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(java.lang.String path, java.lang.String propertyName, java.lang.String propertyValue) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(java.lang.String path, PropertyName propertyName, java.lang.String propertyValue) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(java.util.Hashtable properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean proppatchMethod(java.lang.String path, java.util.Hashtable properties) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean headMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean headMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean deleteMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean deleteMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean moveMethod(java.lang.String destination) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean moveMethod(java.lang.String source, java.lang.String destination) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean copyMethod(java.lang.String destination) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean copyMethod(java.lang.String source, java.lang.String destination) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean mkcolMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean mkcolMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean lockMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean lockMethod(java.lang.String owner, short timeout) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean lockMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean lockMethod(java.lang.String path, java.lang.String owner, short timeout) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean unlockMethod() throws org.apache.commons.httpclient.HttpException, java.io.IOException
public boolean unlockMethod(java.lang.String path) throws org.apache.commons.httpclient.HttpException, java.io.IOException
public int compareToWebdavResource(WebdavResource another)
public int compareTo(java.lang.Object another)
another
- The another WebdavResource object.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the another object.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |