Class CaldavURI

java.lang.Object
org.bedework.caldav.server.CaldavURI

public class CaldavURI extends Object
We map uris onto an object which may be a calendar or an entity contained within that calendar.

The response to webdav actions obviously depends upon the type of referenced entity.

The server will have to determine whether a name represents a publicly available calendar or a user and the access to a calendar will, of course, depend upon the authentication state of the user.

Author:
Mike Douglass douglm rpi.edu
  • Method Details

    • getExists

      public boolean getExists()
      Returns:
      boolean
    • getCol

      public CalDAVCollection<?> getCol()
      Returns:
      CalDAVCollection
    • getResource

      public CalDAVResource<?> getResource()
      Returns:
      CalDAVResource
    • getEntity

      public CalDAVEvent<?> getEntity()
      Returns:
      CalDAVEvent
    • getEntityName

      public String getEntityName()
      Returns:
      String
    • getPath

      public String getPath()
      Returns:
      String
    • getUri

      public String getUri()
      Returns:
      String
    • isResource

      public boolean isResource()
      Returns:
      true if this represents a resource
    • isCollection

      public boolean isCollection()
      Returns:
      true if this represents a calendar
    • getPrincipal

      public org.bedework.access.AccessPrincipal getPrincipal()
      Returns:
      AccessPrincipal or null if not a principal uri
    • sameName

      public boolean sameName(String entityName)
      Parameters:
      entityName - to check
      Returns:
      true if has same name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object