Package net.fortuna.ical4j.connector.dav
Class AbstractDavResource<T extends WebDavSupport>
- java.lang.Object
-
- net.fortuna.ical4j.connector.dav.AbstractDavResource<T>
-
- All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavResource
- Direct Known Subclasses:
CalDavResource
public abstract class AbstractDavResource<T extends WebDavSupport> extends Object implements org.apache.jackrabbit.webdav.DavResource
-
-
Field Summary
Fields Modifier and Type Field Description protected Tclientprotected org.apache.jackrabbit.webdav.property.DavPropertySetproperties
-
Constructor Summary
Constructors Constructor Description AbstractDavResource(org.apache.jackrabbit.webdav.DavResourceFactory factory, org.apache.jackrabbit.webdav.DavResourceLocator locator, org.apache.jackrabbit.webdav.property.DavPropertySet properties, T client, org.apache.jackrabbit.webdav.DavResource parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)org.apache.jackrabbit.webdav.MultiStatusResponsealterProperties(List<? extends org.apache.jackrabbit.webdav.property.PropEntry> changeList)voidcopy(org.apache.jackrabbit.webdav.DavResource destination, boolean shallow)booleanexists()org.apache.jackrabbit.webdav.DavResourcegetCollection()StringgetComplianceClass()StringgetDisplayName()org.apache.jackrabbit.webdav.DavResourceFactorygetFactory()StringgetHref()org.apache.jackrabbit.webdav.DavResourceLocatorgetLocator()org.apache.jackrabbit.webdav.lock.ActiveLockgetLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)org.apache.jackrabbit.webdav.lock.ActiveLock[]getLocks()org.apache.jackrabbit.webdav.DavResourceIteratorgetMembers()longgetModificationTime()org.apache.jackrabbit.webdav.property.DavPropertySetgetProperties()org.apache.jackrabbit.webdav.property.DavProperty<?>getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name)Checks for cached property value, and if not found uses PROPFIND query to DAV server.org.apache.jackrabbit.webdav.property.DavPropertyName[]getPropertyNames()StringgetResourcePath()org.apache.jackrabbit.webdav.DavSessiongetSession()StringgetSupportedMethods()booleanhasLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)booleanisCollection()booleanisLockable(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)org.apache.jackrabbit.webdav.lock.ActiveLocklock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo)voidmove(org.apache.jackrabbit.webdav.DavResource destination)org.apache.jackrabbit.webdav.lock.ActiveLockrefreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo, String lockToken)voidremoveProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName)voidsetProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property)voidunlock(String lockToken)
-
-
-
Field Detail
-
properties
protected final org.apache.jackrabbit.webdav.property.DavPropertySet properties
-
client
protected final T extends WebDavSupport client
-
-
Constructor Detail
-
AbstractDavResource
public AbstractDavResource(org.apache.jackrabbit.webdav.DavResourceFactory factory, org.apache.jackrabbit.webdav.DavResourceLocator locator, org.apache.jackrabbit.webdav.property.DavPropertySet properties, T client, org.apache.jackrabbit.webdav.DavResource parent)
-
-
Method Detail
-
getComplianceClass
public String getComplianceClass()
- Specified by:
getComplianceClassin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getSupportedMethods
public String getSupportedMethods()
- Specified by:
getSupportedMethodsin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getHref
public String getHref()
- Specified by:
getHrefin interfaceorg.apache.jackrabbit.webdav.DavResource
-
isCollection
public boolean isCollection()
- Specified by:
isCollectionin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceorg.apache.jackrabbit.webdav.DavResource
-
getResourcePath
public String getResourcePath()
- Specified by:
getResourcePathin interfaceorg.apache.jackrabbit.webdav.DavResource
-
exists
public boolean exists()
- Specified by:
existsin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getModificationTime
public long getModificationTime()
- Specified by:
getModificationTimein interfaceorg.apache.jackrabbit.webdav.DavResource
-
getProperties
public org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
- Specified by:
getPropertiesin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getPropertyNames
public org.apache.jackrabbit.webdav.property.DavPropertyName[] getPropertyNames()
- Specified by:
getPropertyNamesin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getProperty
public org.apache.jackrabbit.webdav.property.DavProperty<?> getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name)
Checks for cached property value, and if not found uses PROPFIND query to DAV server.- Specified by:
getPropertyin interfaceorg.apache.jackrabbit.webdav.DavResource- Parameters:
name- a property name- Returns:
- a property value, or null if property doesn't exist
-
getLocator
public org.apache.jackrabbit.webdav.DavResourceLocator getLocator()
- Specified by:
getLocatorin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getFactory
public org.apache.jackrabbit.webdav.DavResourceFactory getFactory()
- Specified by:
getFactoryin interfaceorg.apache.jackrabbit.webdav.DavResource
-
setProperty
public void setProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property) throws org.apache.jackrabbit.webdav.DavException- Specified by:
setPropertyin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
removeProperty
public void removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName) throws org.apache.jackrabbit.webdav.DavException- Specified by:
removePropertyin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
alterProperties
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(List<? extends org.apache.jackrabbit.webdav.property.PropEntry> changeList) throws org.apache.jackrabbit.webdav.DavException
- Specified by:
alterPropertiesin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
getCollection
public org.apache.jackrabbit.webdav.DavResource getCollection()
- Specified by:
getCollectionin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getMembers
public org.apache.jackrabbit.webdav.DavResourceIterator getMembers()
- Specified by:
getMembersin interfaceorg.apache.jackrabbit.webdav.DavResource
-
move
public void move(org.apache.jackrabbit.webdav.DavResource destination) throws org.apache.jackrabbit.webdav.DavException- Specified by:
movein interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
copy
public void copy(org.apache.jackrabbit.webdav.DavResource destination, boolean shallow) throws org.apache.jackrabbit.webdav.DavException- Specified by:
copyin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
isLockable
public boolean isLockable(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)- Specified by:
isLockablein interfaceorg.apache.jackrabbit.webdav.DavResource
-
hasLock
public boolean hasLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)- Specified by:
hasLockin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getLock
public org.apache.jackrabbit.webdav.lock.ActiveLock getLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)- Specified by:
getLockin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getLocks
public org.apache.jackrabbit.webdav.lock.ActiveLock[] getLocks()
- Specified by:
getLocksin interfaceorg.apache.jackrabbit.webdav.DavResource
-
lock
public org.apache.jackrabbit.webdav.lock.ActiveLock lock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo) throws org.apache.jackrabbit.webdav.DavException- Specified by:
lockin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
refreshLock
public org.apache.jackrabbit.webdav.lock.ActiveLock refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo, String lockToken) throws org.apache.jackrabbit.webdav.DavException- Specified by:
refreshLockin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
unlock
public void unlock(String lockToken) throws org.apache.jackrabbit.webdav.DavException
- Specified by:
unlockin interfaceorg.apache.jackrabbit.webdav.DavResource- Throws:
org.apache.jackrabbit.webdav.DavException
-
addLockManager
public void addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)
- Specified by:
addLockManagerin interfaceorg.apache.jackrabbit.webdav.DavResource
-
getSession
public org.apache.jackrabbit.webdav.DavSession getSession()
- Specified by:
getSessionin interfaceorg.apache.jackrabbit.webdav.DavResource
-
-