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 T
client
protected org.apache.jackrabbit.webdav.property.DavPropertySet
properties
-
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 void
addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)
org.apache.jackrabbit.webdav.MultiStatusResponse
alterProperties(List<? extends org.apache.jackrabbit.webdav.property.PropEntry> changeList)
void
copy(org.apache.jackrabbit.webdav.DavResource destination, boolean shallow)
boolean
exists()
org.apache.jackrabbit.webdav.DavResource
getCollection()
String
getComplianceClass()
String
getDisplayName()
org.apache.jackrabbit.webdav.DavResourceFactory
getFactory()
String
getHref()
org.apache.jackrabbit.webdav.DavResourceLocator
getLocator()
org.apache.jackrabbit.webdav.lock.ActiveLock
getLock(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.DavResourceIterator
getMembers()
long
getModificationTime()
org.apache.jackrabbit.webdav.property.DavPropertySet
getProperties()
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()
String
getResourcePath()
org.apache.jackrabbit.webdav.DavSession
getSession()
String
getSupportedMethods()
boolean
hasLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)
boolean
isCollection()
boolean
isLockable(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)
org.apache.jackrabbit.webdav.lock.ActiveLock
lock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo)
void
move(org.apache.jackrabbit.webdav.DavResource destination)
org.apache.jackrabbit.webdav.lock.ActiveLock
refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo, String lockToken)
void
removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName)
void
setProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property)
void
unlock(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:
getComplianceClass
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getSupportedMethods
public String getSupportedMethods()
- Specified by:
getSupportedMethods
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getHref
public String getHref()
- Specified by:
getHref
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
isCollection
public boolean isCollection()
- Specified by:
isCollection
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getResourcePath
public String getResourcePath()
- Specified by:
getResourcePath
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
exists
public boolean exists()
- Specified by:
exists
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getModificationTime
public long getModificationTime()
- Specified by:
getModificationTime
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getProperties
public org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
- Specified by:
getProperties
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getPropertyNames
public org.apache.jackrabbit.webdav.property.DavPropertyName[] getPropertyNames()
- Specified by:
getPropertyNames
in 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:
getProperty
in 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:
getLocator
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getFactory
public org.apache.jackrabbit.webdav.DavResourceFactory getFactory()
- Specified by:
getFactory
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
setProperty
public void setProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property) throws org.apache.jackrabbit.webdav.DavException
- Specified by:
setProperty
in 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:
removeProperty
in 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:
alterProperties
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
-
getCollection
public org.apache.jackrabbit.webdav.DavResource getCollection()
- Specified by:
getCollection
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getMembers
public org.apache.jackrabbit.webdav.DavResourceIterator getMembers()
- Specified by:
getMembers
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
move
public void move(org.apache.jackrabbit.webdav.DavResource destination) throws org.apache.jackrabbit.webdav.DavException
- Specified by:
move
in 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:
copy
in 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:
isLockable
in 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:
hasLock
in 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:
getLock
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getLocks
public org.apache.jackrabbit.webdav.lock.ActiveLock[] getLocks()
- Specified by:
getLocks
in 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:
lock
in 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:
refreshLock
in 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:
unlock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
-
addLockManager
public void addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)
- Specified by:
addLockManager
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
getSession
public org.apache.jackrabbit.webdav.DavSession getSession()
- Specified by:
getSession
in interfaceorg.apache.jackrabbit.webdav.DavResource
-
-