|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAVResourceInterface
Provides the interface for a DAV Resource. A DAVResource is a WebDAV (Distributed Authoring and Versioning) resource as specified in IETF RFC 2518.
Method Summary | |
---|---|
void |
close()
Close the socket used for this connection. |
DAVResource |
copy(java.lang.String targetUrl)
Copy resource to the target destination |
void |
delete()
Delete the resource |
void |
doCheckin()
Check in this resource. |
void |
doCheckout()
Checks out this resource. |
void |
doControl()
Puts the resource until version control. |
void |
doLabel(int labelAction,
java.lang.String label)
Modify the version label on the resource (if this is supported by the server). |
void |
doUncheckout()
Uncheckout this resource, cancelling a previous checkout. |
boolean |
exists()
Returns whether the resource exists or not |
com.sas.services.webdav.Acl |
getAcl()
Get a the access control list for this resource. |
java.lang.String |
getACL()
Get the Access Control List for this resource. |
org.apache.webdav.lib.Lock |
getActiveLockFor(java.lang.String owner)
Get an active lock, if it exists, for the owner |
com.sas.services.webdav.Version |
getCheckedIn()
Retrieves the currently checked in resource. |
com.sas.services.webdav.Version |
getCheckedOut()
Retrieves the currently checked out resource. |
java.util.List |
getChildrenList(java.lang.String path)
Get a list of children. |
byte[] |
getContents()
Return the contents of the resource as a byte array |
void |
getContents(java.io.File fileData)
Get the content of the resource into a file specified as the parameter |
java.lang.String |
getContentsAsString()
Return the contents of the resource as a String |
java.io.InputStream |
getContentsInputStream()
Return the content of the resource as a stream |
java.lang.String |
getContentType()
Return the content type of the content for this resource |
java.util.Set |
getCurrentUserPrivilegeSet()
Get a the current list of privileges this user has for this resource. |
int |
getDepth()
Get the current depth value |
int |
getExistsRequirement()
|
boolean |
getOverwrite()
Get the overwrite flag - can this resource be overwritten |
java.lang.String |
getPath()
Get the path for the WebDAV resource that is currently represented by this DAVResource |
java.util.List |
getPreviousVersionNames()
Gets a list of previous version names for this resource. |
org.apache.webdav.lib.Property[] |
getProperties()
Get the properties for the resource. |
org.apache.webdav.lib.Property[] |
getProperties(org.w3c.dom.Element[] propNames)
Get the property values for the properties specified in the parameter |
org.apache.webdav.lib.Property[] |
getProperties(PropertyName[] propNames)
Get the property values for the properties specified in the parameter |
org.apache.webdav.lib.Property[] |
getProperties(java.lang.String propNames)
Returns a properties for a given set of property names. |
org.apache.webdav.lib.Property[] |
getProperty(org.w3c.dom.Element propName)
Get the property values for the properties specified in the parameter |
org.apache.webdav.lib.Property[] |
getProperty(PropertyName propName)
Get the property value for the property specified in the parameter |
org.apache.webdav.lib.Property[] |
getProperty(java.lang.String propName)
Get the property value for the property specified in the parameter |
org.apache.webdav.lib.Property[] |
getPropertyNames()
Get all the property names on the resource |
int |
getStatusCode()
Get the status code for the last operation/method |
java.lang.String |
getStatusMessage()
Get the message associated with the status code for the last operation/method |
com.sas.services.webdav.TreeNode |
getSupportedPrivilegeSet()
Get a list of privileges that apply to this resource. |
java.lang.String |
getTempDir()
Returns the current setting for the directory for temporary files |
java.net.URL |
getURL()
Get the URL that the resource represents |
com.sas.services.webdav.Version |
getVersion(java.lang.String versionName)
Gets a particular version of this resource |
boolean |
isCollection()
Is this resource a collection? |
boolean |
isLocked()
Is this resource locked? |
java.lang.String |
lock()
Lock this resource |
boolean |
makeCollection()
Make a collection. |
DAVResource |
move(java.lang.String targetUrl)
Move this resource to the location given in the parameter |
void |
removeProperties(org.w3c.dom.Element[] propNames)
Remove the properties specified in the parameter |
void |
removeProperties(PropertyName[] propNames)
Remove the properties specified in the parameter |
void |
removeProperty(org.w3c.dom.Element propName)
Remove the property specified in the parameter |
void |
removeProperty(PropertyName propName)
Remove the property specified in the parameter |
void |
removeProperty(java.lang.String propName)
Remove the property specified in the parameter |
org.apache.webdav.lib.Property[] |
report(java.lang.String reportBody)
Run a report on the current resource. |
org.apache.webdav.lib.Property[] |
search(org.w3c.dom.Element searchQuery)
Using the XML representation of the search query, perform the search on the server |
org.apache.webdav.lib.Property[] |
search(java.lang.String searchString)
Using the search query provided as a string, perform the search on this server |
java.lang.String |
setAcl(com.sas.services.webdav.Acl acl)
Set the access control list for this resource. |
java.lang.String |
setACL(java.lang.String acl)
Set/Update the Access Control List for this resource. |
void |
setContents(byte[] contents)
Set the contents of the resource, passing in a byte array |
void |
setContents(java.io.InputStream is)
Set the contents of the resource from an input stream. |
void |
setContents(java.lang.String content)
Set the contents of the resource, passing in a URL |
void |
setContents(java.net.URL url)
Set the contents of the resource, passing in a URL |
void |
setContentType(java.lang.String contentType)
Set the contents type for the content of the resource |
void |
setDepth(int depth)
Set the depth that will be used for the following operations DEPTH_0, DEPTH_1 and DEPTH_INFINITY from DepthSupport are valid values |
void |
setEscapedPath(java.lang.String escapedPath)
Set the path for this resource using an escaped string. |
void |
setExistsRequirement(int requirement)
|
void |
setOverwrite(boolean overwrite)
Set the overwrite flag - can this resource be overwritten |
void |
setPath(java.lang.String path)
Set the path for this resource. |
void |
setPathNoAction(java.lang.String path)
Set the path for this resource. |
void |
setProperties(org.w3c.dom.DocumentFragment props)
Set the values of properties, as given in the parameter |
void |
setProperties(org.w3c.dom.Element[] props)
Set the values of properties, as given in the parameter |
void |
setProperties(PropertyName[] propNames,
java.lang.String[] props)
Set the values of properties, as given in the parameter |
void |
setProperty(org.w3c.dom.Element prop)
Set the value of a property, as given in the parameter |
void |
setProperty(PropertyName propName,
java.lang.String prop)
Set the value of a property, as given in the parameter |
void |
setSessionContext(java.lang.Object sessionContext)
Deprecated. This method is no longer useful. |
void |
setTempDir(java.lang.String tempDir)
Provides a way to set a directory for temporary files. |
boolean |
SUCCEEDED()
Returns whether the last method was successful or not. |
void |
unlock()
Unlock the resource, if previously locked by the same principal |
void |
unlock(java.lang.String lockToken)
Unlock the resource, with the correct locktoken |
Method Detail |
---|
void delete() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Lock getActiveLockFor(java.lang.String owner) throws DAVException, java.rmi.RemoteException
owner
- The owner for which the lock is being sought
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void getContents(java.io.File fileData) throws DAVException, java.rmi.RemoteException
fileData
- The file into which the contents of the resource should be written
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.byte[] getContents() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String getContentsAsString() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String getContentType() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.io.InputStream getContentsInputStream() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperties() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperties(org.w3c.dom.Element[] propNames) throws DAVException, java.rmi.RemoteException
propNames
- An array of elements representing WebDAV property names
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperty(org.w3c.dom.Element propName) throws DAVException, java.rmi.RemoteException
propName
- An element representing WebDAV property name
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperties(PropertyName[] propNames) throws DAVException, java.rmi.RemoteException
propNames
- An array of PropertyName objects representing WebDAV property names
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperty(java.lang.String propName) throws DAVException, java.rmi.RemoteException
propName
- A string representing a WebDAV property name
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getProperty(PropertyName propName) throws DAVException, java.rmi.RemoteException
propName
- A ProrpertyName object representing a WebDAV property name
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] getPropertyNames() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.int getStatusCode() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String getStatusMessage() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.net.URL getURL() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.boolean isCollection() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.boolean isLocked() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String lock() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.DAVResource move(java.lang.String targetUrl) throws DAVException, java.rmi.RemoteException
targetUrl
- The destination URL for this copy
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void removeProperties(PropertyName[] propNames) throws DAVException, java.rmi.RemoteException
propNames
- An array of property names that should be removed
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void removeProperties(org.w3c.dom.Element[] propNames) throws DAVException, java.rmi.RemoteException
propNames
- An array of property names that should be removed
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void removeProperty(org.w3c.dom.Element propName) throws DAVException, java.rmi.RemoteException
propName
- The name of a property that should be removed from this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void removeProperty(java.lang.String propName) throws DAVException, java.rmi.RemoteException
propName
- The name of a property that should be removed from this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void removeProperty(PropertyName propName) throws DAVException, java.rmi.RemoteException
propName
- The name of a property that should be removed from this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setContents(byte[] contents) throws DAVException, java.rmi.RemoteException
contents
- The byte array containing the content for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setContents(java.net.URL url) throws DAVException, java.rmi.RemoteException
url
- A url that represents the content for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setContents(java.lang.String content) throws DAVException, java.rmi.RemoteException
content
- The string containing the content for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setContents(java.io.InputStream is) throws DAVException, java.rmi.RemoteException
InputStreamAdapter
is
- An input stream representing the content for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setContentType(java.lang.String contentType) throws DAVException, java.rmi.RemoteException
contentType
- The content type for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setProperties(org.w3c.dom.Element[] props) throws DAVException, java.rmi.RemoteException
props
- An array of properties to be set on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setProperties(PropertyName[] propNames, java.lang.String[] props) throws DAVException, java.rmi.RemoteException
propNames
- An array of property names to be set on this resourceprops
- An array of property values to be set on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setProperties(org.w3c.dom.DocumentFragment props) throws DAVException, java.rmi.RemoteException
props
- An XML document fragment that defines the properties to be set on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setProperty(PropertyName propName, java.lang.String prop) throws DAVException, java.rmi.RemoteException
propName
- An property name to be set on this resourceprop
- A property value to be set on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setProperty(org.w3c.dom.Element prop) throws DAVException, java.rmi.RemoteException
prop
- An XML element that represents a property to be set on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void unlock() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void unlock(java.lang.String lockToken) throws DAVException, java.rmi.RemoteException
lockToken
- The lock token for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.boolean getOverwrite() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setOverwrite(boolean overwrite) throws DAVException, java.rmi.RemoteException
overwrite
- The value of the overwrite flag to set on the resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setDepth(int depth) throws DAVException, java.rmi.RemoteException
depth
- The depth for operations on this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.int getDepth() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] search(java.lang.String searchString) throws DAVException, java.rmi.RemoteException
searchString
- A string containing an XML DASL search request
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] search(org.w3c.dom.Element searchQuery) throws DAVException, java.rmi.RemoteException
searchQuery
- An XML document containing a DASL search request
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void close() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of network failure.void setTempDir(java.lang.String tempDir) throws java.rmi.RemoteException
java.io.tmp
system property can be used to set this value
at JVM invocation. If the system property is not set "/temp/" is the
default, but can be overridden with this method.
tempDir
- Temp directory for temporary files
java.rmi.RemoteException
- in the event of network failure.java.lang.String getTempDir() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of network failure.boolean exists() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of network failure.org.apache.webdav.lib.Property[] report(java.lang.String reportBody) throws DAVException, java.rmi.RemoteException
reportBody
- An XML document string that represents the report
request
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String getACL() throws DAVException, java.rmi.RemoteException
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.java.lang.String setACL(java.lang.String acl) throws DAVException, java.rmi.RemoteException
acl
- An XML serialized document describing the ACL for this resource
DAVException
- in the event of a WebDAV failure.
java.rmi.RemoteException
- in the event of network failure.void setSessionContext(java.lang.Object sessionContext) throws java.rmi.RemoteException
sessionContext
- The session context for this DAVResource
java.rmi.RemoteException
- in the event of network failure.java.lang.String getPath() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of a network failurevoid setPath(java.lang.String path) throws java.rmi.RemoteException
path
- The new path for the WebDAV resource
java.rmi.RemoteException
- in the event of a network failurevoid setEscapedPath(java.lang.String escapedPath) throws java.rmi.RemoteException
path
- The new encoded path for the WebDAV resource
java.rmi.RemoteException
void setPathNoAction(java.lang.String path) throws java.rmi.RemoteException
path
- The new path for the WebDAV resource
java.rmi.RemoteException
- in the event of a network failureboolean makeCollection() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresboolean SUCCEEDED() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the case of network failuresorg.apache.webdav.lib.Property[] getProperties(java.lang.String propNames) throws DAVException, java.rmi.RemoteException
propNames
- names of properties for which values should be returned
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresDAVResource copy(java.lang.String targetUrl) throws DAVException, java.rmi.RemoteException
targetUrl
- location to which current resource is to be copied.
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid doControl() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid doLabel(int labelAction, java.lang.String label) throws DAVException, java.rmi.RemoteException
labelAction
- Specify whether the label should be set (specify 1), added (specify 2), removed (specify 3)label
- The value of the label
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresjava.util.List getPreviousVersionNames() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid doCheckout() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid doCheckin() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid doUncheckout() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failurescom.sas.services.webdav.Version getVersion(java.lang.String versionName) throws DAVException, java.rmi.RemoteException
versionName
- Which version to retrieve for this resource
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failurescom.sas.services.webdav.Version getCheckedIn() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failurescom.sas.services.webdav.Version getCheckedOut() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresvoid setExistsRequirement(int requirement) throws java.rmi.RemoteException
java.rmi.RemoteException
int getExistsRequirement() throws java.rmi.RemoteException
java.rmi.RemoteException
com.sas.services.webdav.TreeNode getSupportedPrivilegeSet() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresjava.util.Set getCurrentUserPrivilegeSet() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failurescom.sas.services.webdav.Acl getAcl() throws DAVException, java.rmi.RemoteException
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresjava.lang.String setAcl(com.sas.services.webdav.Acl acl) throws DAVException, java.rmi.RemoteException
acl
- The access control list to set for this resource
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failuresjava.util.List getChildrenList(java.lang.String path) throws DAVException, java.rmi.RemoteException
path
- The path of the resource
DAVException
- in the case of a WebDAV error
java.rmi.RemoteException
- in the case of network failures
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |