org.apache.abdera.protocol.server.adapters.filesystem
Class FilesystemAdapter
java.lang.Object
org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
org.apache.abdera.protocol.server.provider.managed.ManagedCollectionAdapter
org.apache.abdera.protocol.server.adapters.filesystem.FilesystemAdapter
- All Implemented Interfaces:
- CollectionAdapter, CollectionInfo, MediaCollectionAdapter, Transactional
public class FilesystemAdapter
- extends ManagedCollectionAdapter
Simple Filesystem Adapter that uses a local directory to store Atompub collection entries. As an extension of the
ManagedCollectionAdapter class, the Adapter is intended to be used with implementations of the ManagedProvider and
are configured using /abdera/adapter/*.properties files. The *.properties file MUST specify the fs.root property to
specify the root directory used by the Adapter.
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, createFeedBase, deleteMedia, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, getMedia, getResourceName, headEntry, headMedia, optionsEntry, optionsMedia, postMedia, putMedia, setHref, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilesystemAdapter
public FilesystemAdapter(Abdera abdera,
FeedConfiguration config)
getFeed
public ResponseContext getFeed(RequestContext request)
- Description copied from interface:
CollectionAdapter
- Get the collections Atom feed document
deleteEntry
public ResponseContext deleteEntry(RequestContext request)
- Description copied from interface:
CollectionAdapter
- Delete an entry from the collection
getEntry
public ResponseContext getEntry(RequestContext request)
- Description copied from interface:
CollectionAdapter
- Get an entry from the collection
postEntry
public ResponseContext postEntry(RequestContext request)
- Description copied from interface:
CollectionAdapter
- Post a new entry to the collection
putEntry
public ResponseContext putEntry(RequestContext request)
- Description copied from interface:
CollectionAdapter
- Update an existing entry
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.