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:
java.lang.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
Modifier and Type Method Description abstract java.io.InputStreamgetBinaryContent()Return binary contentabstract longgetContentLen()abstract java.lang.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(java.io.InputStream val)Set the valueabstract voidsetContentType(java.lang.String val)Set the contentType - may be null for unknownMethods 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, toStringSegmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CalDAVResource
public CalDAVResource()Constructor
-
-
Method Details
-
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(java.io.InputStream val) throws org.bedework.webdav.servlet.shared.WebdavExceptionSet the value- Parameters:
val- InputStream- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getBinaryContent
public abstract java.io.InputStream getBinaryContent() throws org.bedework.webdav.servlet.shared.WebdavExceptionReturn 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(java.lang.String val) throws org.bedework.webdav.servlet.shared.WebdavExceptionSet the contentType - may be null for unknown- Parameters:
val- String contentType- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getContentType
public abstract java.lang.String getContentType() throws org.bedework.webdav.servlet.shared.WebdavExceptionA 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
-