Class 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 Detail

      • CalDAVResource

        public CalDAVResource()
        Constructor
    • 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.WebdavException
        This 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