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.InputStream getBinaryContent()
    Return binary content
    abstract long getContentLen()  
    abstract java.lang.String getContentType()
    A content type of null implies no content (or we don't know)
    abstract boolean getDeleted()  
    abstract NotificationType.NotificationInfo getNotificationType()  
    abstract long getQuotaSize()
    This can be different from the content length
    abstract boolean isNew()  
    abstract void setBinaryContent​(java.io.InputStream val)
    Set the value
    abstract void setContentType​(java.lang.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

    Methods 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.WebdavException
      Set 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.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​(java.lang.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 java.lang.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