Interface DeltaVResource
- All Superinterfaces:
DavResource
- All Known Subinterfaces:
ActivityResource,BaselineResource,VersionableResource,VersionControlledResource,VersionHistoryResource,VersionResource,WorkspaceResource
The
DeltaVResource encapsulates the functionality common to all
DeltaV compliant resources.
RFC 3253 defines the following required properties:
DAV:commentDAV:creator-displaynameDAV:supported-method-setDAV:supported-live-property-setDAV:supported-report-set- all properties defined in WebDAV [RFC2518].
In addition a DeltaV compliant resource must support the following METHODS:
- REPORT
- all METHODS defined in WebDAV [RFC2518]
- all METHODS defined in HTTP/1.1 [RFC2616].
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorkspace(DavResource workspace) Add a new member to this resource, that represents a workspace.
Please note that no resource must exist at the location of the new workspace.getOptionResponse(OptionsInfo optionsInfo) Retrieves the information requested in the OPTIONS request body and returns the corresponding values.getReferenceResources(DavPropertyName hrefPropertyName) Returns an array ofDavResourceobjects that are referenced by theHrefPropertywith the specifiedname.getReport(ReportInfo reportInfo) Runs the report specified by the givenReportInfo.Methods inherited from interface org.apache.jackrabbit.webdav.DavResource
addLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
-
Field Details
-
METHODS
The generic deltaV compliant resource defines one additional method REPORT.- See Also:
-
METHODS_INCL_MKWORKSPACE
If the server support the Workspace featured defined by RFC 3253 certainDeltaVResources may also support the MKWORKSPACE method.- See Also:
-
-
Method Details
-
getOptionResponse
Retrieves the information requested in the OPTIONS request body and returns the corresponding values.- Parameters:
optionsInfo-- Returns:
- object to be included to the OPTIONS response body or
nullif the specified optionsInfo wasnullor empty.
-
getReport
Runs the report specified by the givenReportInfo.- Parameters:
reportInfo-- Returns:
- the requested report.
- Throws:
DavException- in case an error occurred or if the specifiedReportInfois either not valid or cannot be run by the given resource.
-
addWorkspace
Add a new member to this resource, that represents a workspace.
Please note that no resource must exist at the location of the new workspace.- Parameters:
workspace- resource representing the new workspace to be created as member of this resource.- Throws:
DavException- if creating the new workspace fails.
-
getReferenceResources
Returns an array ofDavResourceobjects that are referenced by theHrefPropertywith the specifiedname.- Parameters:
hrefPropertyName-- Returns:
- An array of
DavResources - Throws:
DavException- if the given hrefPropertyName does point to an unknown property or does not represent the name of ahref property. Finally the exception may be caused if the property contains the href of a non-existing resource, which cannot be resolved.- See Also:
-