org.apache.abdera.protocol.server.provider.managed
Class ManagedCollectionAdapter

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
      extended by org.apache.abdera.protocol.server.provider.managed.ManagedCollectionAdapter
All Implemented Interfaces:
CollectionAdapter, CollectionInfo, MediaCollectionAdapter, Transactional
Direct Known Subclasses:
BasicAdapter, CouchDbAdapter, FilesystemAdapter

public abstract class ManagedCollectionAdapter
extends org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
implements CollectionAdapter


Field Summary
protected  Abdera abdera
           
protected  FeedConfiguration config
           
 
Constructor Summary
protected ManagedCollectionAdapter(Abdera abdera, FeedConfiguration config)
           
 
Method Summary
 Abdera getAbdera()
           
 String getAuthor(RequestContext request)
           
 FeedConfiguration getConfiguration()
           
 String getId(RequestContext request)
           
 String getTitle(RequestContext request)
          Get the value of the app:collection element's atom:title element.
 
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
 
Methods inherited from interface org.apache.abdera.protocol.server.CollectionAdapter
deleteEntry, extensionRequest, getCategories, getEntry, getFeed, headEntry, optionsEntry, postEntry, putEntry
 

Field Detail

config

protected final FeedConfiguration config

abdera

protected final Abdera abdera
Constructor Detail

ManagedCollectionAdapter

protected ManagedCollectionAdapter(Abdera abdera,
                                   FeedConfiguration config)
Method Detail

getAbdera

public Abdera getAbdera()

getConfiguration

public FeedConfiguration getConfiguration()

getAuthor

public String getAuthor(RequestContext request)
                 throws ResponseContextException
Specified by:
getAuthor in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
Throws:
ResponseContextException

getId

public String getId(RequestContext request)
Specified by:
getId in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter

getTitle

public String getTitle(RequestContext request)
Description copied from interface: CollectionInfo
Get the value of the app:collection element's atom:title element. This assumes that the title will be type="text". This must not be null;

Specified by:
getTitle in interface CollectionInfo


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.