public interface InteractionFeedREST
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addEntry(org.apache.abdera.model.Entry entry)
Adds an entry to this ATOM feed.
|
String |
deleteEntry(String id)
Delete an entry from this ATOM feed.
|
javax.ws.rs.core.Response |
entryOptions(String id)
Handles the OPTIONS request.
|
javax.ws.rs.core.Response |
feedOptions()
Handles the OPTIONS request.
|
org.apache.abdera.model.Entry |
getEntry(String id)
Gets the content of an entry in this ATOM feed.
|
org.apache.abdera.model.Feed |
getFeed()
Get the feed document for this ATOM feed.
|
@GET @Path(value="/") @Produces(value="application/atom+xml") org.apache.abdera.model.Feed getFeed() throws FilesystemAccessException, NoDirectoryEntryException
FilesystemAccessException
- If we can't read from the feed directory.NoDirectoryEntryException
- If something changes things under our feet.@POST @Path(value="/") @Consumes(value="application/atom+xml") @Produces(value="application/atom+xml") javax.ws.rs.core.Response addEntry(org.apache.abdera.model.Entry entry) throws MalformedURLException, FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
entry
- The entry to create.MalformedURLException
- If we have problems generating the URI of the entry.FilesystemAccessException
- If we can't create the feed entry file.NoDirectoryEntryException
- If things get changed under our feet.NoUpdateException
- If we don't have permission to change things relating to this
run.@OPTIONS @Path(value="/") javax.ws.rs.core.Response feedOptions()
@GET @Path(value="{id}") @Produces(value="application/atom+xml") org.apache.abdera.model.Entry getEntry(@PathParam(value="id") String id) throws FilesystemAccessException, NoDirectoryEntryException
id
- The ID of the entry to fetch.FilesystemAccessException
- If we have problems reading the entry.NoDirectoryEntryException
- If we can't find the entry to read.@DELETE @Path(value="{id}") @Produces(value="text/plain") String deleteEntry(@PathParam(value="id") String id) throws FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
id
- The ID of the entry to delete.FilesystemAccessException
- If we have problems deleting the entry.NoDirectoryEntryException
- If we can't find the entry to delete.NoUpdateException
- If we don't have permission to alter things relating to this
run.@OPTIONS @Path(value="{id}") javax.ws.rs.core.Response entryOptions(@PathParam(value="{id}") String id)
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.