public abstract class BaseEntityCollectionAdapter<T>
extends org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
Modifier and Type | Field and Description |
---|---|
protected String |
collectionName |
Modifier | Constructor and Description |
---|---|
protected |
BaseEntityCollectionAdapter(String collectionName) |
Modifier and Type | Method and Description |
---|---|
protected String |
addEntryDetails(org.apache.abdera.protocol.server.RequestContext requestContext,
org.apache.abdera.model.Entry entry,
org.apache.abdera.i18n.iri.IRI feedIri,
T entryObj) |
protected void |
addFeedDetails(org.apache.abdera.model.Feed feed,
org.apache.abdera.protocol.server.RequestContext requestContext) |
protected org.apache.abdera.model.Feed |
createFeedBase(org.apache.abdera.protocol.server.RequestContext requestContext) |
String |
getAuthor(org.apache.abdera.protocol.server.RequestContext requestContext) |
protected abstract String |
getEntryId(T entry) |
String |
getHref(org.apache.abdera.protocol.server.RequestContext requestContext) |
String |
getId(org.apache.abdera.protocol.server.RequestContext requestContext) |
String |
getId(T entry) |
String |
getName(T entry) |
addContent, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteEntry, deleteMedia, deleteMedia, getAuthors, getContent, getContentType, getEntries, getEntry, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getLink, getLink, getLink, getLink, getMedia, getMediaName, getMediaStream, getQueryParameters, getSummary, getTitle, getUpdated, headEntry, headMedia, isMediaEntry, postEntry, postEntry, postMedia, postMedia, putEntry, putEntry, putMedia, putMedia
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getResourceName, optionsEntry, optionsMedia, setHref, start
protected BaseEntityCollectionAdapter(String collectionName)
public String getAuthor(org.apache.abdera.protocol.server.RequestContext requestContext)
getAuthor
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public String getHref(org.apache.abdera.protocol.server.RequestContext requestContext)
getHref
in interface org.apache.abdera.protocol.server.CollectionInfo
getHref
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public String getId(org.apache.abdera.protocol.server.RequestContext requestContext)
getId
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public String getId(T entry)
getId
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
public String getName(T entry)
getName
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
protected String addEntryDetails(org.apache.abdera.protocol.server.RequestContext requestContext, org.apache.abdera.model.Entry entry, org.apache.abdera.i18n.iri.IRI feedIri, T entryObj) throws org.apache.abdera.protocol.server.context.ResponseContextException
addEntryDetails
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
org.apache.abdera.protocol.server.context.ResponseContextException
protected void addFeedDetails(org.apache.abdera.model.Feed feed, org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
addFeedDetails
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
org.apache.abdera.protocol.server.context.ResponseContextException
protected org.apache.abdera.model.Feed createFeedBase(org.apache.abdera.protocol.server.RequestContext requestContext)
createFeedBase
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
protected abstract String getEntryId(T entry)