Create the controller
All of the code for the webdav/caldav handling will be in a single controller class.
So create HelloCaldavController in the com.hellocaldav package.
Give it the ResourceController annotation, a logger and a list of users to pretend to be our database:
@ResourceController public class HelloCaldavController { private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(HelloCaldavController.class); private final List<User> users = new ArrayList<User>(); public HelloCaldavController() { createUser("jack"); createUser("jill"); }