Package org.bedework.caldav.server
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CalDAVCollection<?>getCol()CalDAVEvent<?>getEntity()StringgetEntityName()booleangetExists()StringgetPath()org.bedework.access.AccessPrincipalgetPrincipal()CalDAVResource<?>getResource()StringgetUri()inthashCode()booleanisCollection()booleanisResource()booleansameName(String entityName)StringtoString()
-
-
-
Method Detail
-
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
-
-