Package org.bedework.caldav.server
Class CalDAVResource<T>
- java.lang.Object
-
- org.bedework.webdav.servlet.shared.WdEntity<T>
-
- org.bedework.caldav.server.CalDAVResource<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Comparable<org.bedework.webdav.servlet.shared.WdEntity<?>>
public abstract class CalDAVResource<T> extends org.bedework.webdav.servlet.shared.WdEntity<T>Class to represent a resource in CalDAV- Author:
- douglm
-
-
Constructor Summary
Constructors Constructor Description CalDAVResource()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract InputStreamgetBinaryContent()Return binary contentabstract longgetContentLen()abstract StringgetContentType()A content type of null implies no content (or we don't know)abstract booleangetDeleted()abstract NotificationType.NotificationInfogetNotificationType()abstract longgetQuotaSize()This can be different from the content lengthabstract booleanisNew()abstract voidsetBinaryContent(InputStream val)Set the valueabstract voidsetContentType(String val)Set the contentType - may be null for unknown-
Methods inherited from class org.bedework.webdav.servlet.shared.WdEntity
compareTo, getAliasUri, getCanPublish, getCanShare, getCreated, getDescription, getDisplayName, getEtag, getLastmod, getName, getOwner, getParentPath, getPath, getPreviousEtag, getProperty, hashCode, isAlias, resolveAlias, setCreated, setDescription, setDisplayName, setLastmod, setName, setOwner, setParentPath, setPath, setProperty, toString, toStringSegment
-
-
-
-
Method Detail
-
isNew
public abstract boolean isNew() throws org.bedework.webdav.servlet.shared.WebdavException- Returns:
- boolean true if this will be created as a result of a Put
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getDeleted
public abstract boolean getDeleted() throws org.bedework.webdav.servlet.shared.WebdavException- Returns:
- true if this represents a deleted resource.
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setBinaryContent
public abstract void setBinaryContent(InputStream val) throws org.bedework.webdav.servlet.shared.WebdavException
Set the value- Parameters:
val- InputStream- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getBinaryContent
public abstract InputStream getBinaryContent() throws org.bedework.webdav.servlet.shared.WebdavException
Return binary content- Returns:
- InputStream content.
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getContentLen
public abstract long getContentLen() throws org.bedework.webdav.servlet.shared.WebdavException- Returns:
- long content length
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getQuotaSize
public abstract long getQuotaSize() throws org.bedework.webdav.servlet.shared.WebdavExceptionThis can be different from the content length- Returns:
- long quota size
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setContentType
public abstract void setContentType(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Set the contentType - may be null for unknown- Parameters:
val- String contentType- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getContentType
public abstract String getContentType() throws org.bedework.webdav.servlet.shared.WebdavException
A content type of null implies no content (or we don't know)- Returns:
- String content type
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getNotificationType
public abstract NotificationType.NotificationInfo getNotificationType() throws org.bedework.webdav.servlet.shared.WebdavException
- Returns:
- null if this is not a notification
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
-