Class CarddavURI

java.lang.Object
org.bedework.carddav.server.CarddavURI

public class CarddavURI 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 CarddavCollection getCol()
      Returns:
      WdCollection
    • getResource

      public CarddavResource getResource()
      Returns:
      BwResource
    • getEntity

      public Card getEntity()
      Returns:
      Object
    • getColName

      public String getColName()
      Returns:
      String
    • 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 calendar
    • isCollection

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

      public boolean isUser()
      Returns:
      true if this represents a user
    • isGroup

      public boolean isGroup()
      Returns:
      true if this represents a group
    • sameName

      public boolean sameName(String entityName)
      Parameters:
      entityName -
      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