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 -
Method Summary
Modifier and TypeMethodDescriptionabstract InputStreamReturn binary contentabstract longabstract StringA content type of null implies no content (or we don't know)abstract booleanabstract NotificationType.NotificationInfoabstract longThis can be different from the content lengthabstract booleanisNew()abstract voidSet the valueabstract voidsetContentType(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, toStringSegment
-
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(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.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(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
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
-