If you are implementing an Atom Server you'll need to use these classes to create a Service Document, which specifies the Workspaces and Collections that are available from an Atom Service. Create an AtomService object, populate it with Workspaces and populate those with Collections. Once you're done you can call
For example, here's code to create a service document that specifies one workspace "My Workspace" with two collections: "My Entries" that accepts entries and "My Uploads" that accepts everything (i.e. content-type range */*).
AtomService service = new AtomService(); Workspace workspace = new Workspace( "My Workspace", "text"); service.addWorkspace(workspace); Collection entryCol = new Collection( "My Entries", "text", baseAppUri + "/"+ handle +"/entries"); entryCol.setAccept("entry"); workspace.addCollection( entryCol ); Collection uploadCol = new Collection( "My Uploads", "text", baseAppUri + "/" + handle + "/resources"); uploadCol.setAccept("*/*"); workspace.addCollection(uploadCol);
The Propono Atom client extends the classes in this package to provide a client-side Service Document representation that allows you to create, retrieve, update and delete entries in collections.