|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter org.apache.abdera.protocol.server.provider.managed.ManagedCollectionAdapter org.apache.abdera.protocol.server.provider.basic.BasicAdapter
public abstract class BasicAdapter
The BasicAdapter provides a simplistic interface for working with Atompub collections with a restricted set of options/features. The idea of the basic adapter is to make it easy to provide a minimally capable Atompub server
Field Summary | |
---|---|
static Logger |
logger
|
Fields inherited from class org.apache.abdera.protocol.server.provider.managed.ManagedCollectionAdapter |
---|
abdera, config |
Constructor Summary | |
---|---|
protected |
BasicAdapter(Abdera abdera,
FeedConfiguration config)
|
Method Summary | |
---|---|
protected void |
addEditLinkToEntry(Entry entry)
|
abstract Entry |
createEntry(Entry entry)
|
protected String |
createEntryIdUri(String entryId)
|
protected Feed |
createFeed()
|
abstract boolean |
deleteEntry(Object entryId)
|
ResponseContext |
deleteEntry(RequestContext request)
Delete an entry from the collection |
ResponseContext |
extensionRequest(RequestContext request)
Any request that is not covered by the postEntry, deleteEntry, etc methods will be passed on to the extensionRequest method. |
ResponseContext |
getCategories(RequestContext request)
Get an Atompub Categories document |
abstract Entry |
getEntry(Object entryId)
|
ResponseContext |
getEntry(RequestContext request)
Get an entry from the collection |
abstract Feed |
getFeed()
|
ResponseContext |
getFeed(RequestContext request)
Get the collections Atom feed document |
String |
getProperty(String key)
|
ResponseContext |
postEntry(RequestContext request)
Post a new entry to the collection |
ResponseContext |
putEntry(RequestContext request)
Update an existing entry |
protected void |
setEntryIdIfNull(Entry entry)
|
abstract Entry |
updateEntry(Object entryId,
Entry entry)
|
Methods inherited from class org.apache.abdera.protocol.server.provider.managed.ManagedCollectionAdapter |
---|
getAbdera, getAuthor, getConfiguration, getId, getTitle |
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
---|
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, createFeedBase, deleteMedia, end, getAccepts, 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 |
---|
headEntry, optionsEntry |
Field Detail |
---|
public static Logger logger
Constructor Detail |
---|
protected BasicAdapter(Abdera abdera, FeedConfiguration config)
Method Detail |
---|
public String getProperty(String key) throws Exception
Exception
protected Feed createFeed() throws Exception
Exception
protected void addEditLinkToEntry(Entry entry) throws Exception
Exception
protected void setEntryIdIfNull(Entry entry) throws Exception
Exception
protected String createEntryIdUri(String entryId) throws Exception
Exception
public ResponseContext postEntry(RequestContext request)
CollectionAdapter
public ResponseContext deleteEntry(RequestContext request)
CollectionAdapter
public ResponseContext putEntry(RequestContext request)
CollectionAdapter
public ResponseContext getEntry(RequestContext request)
CollectionAdapter
public ResponseContext getFeed(RequestContext request)
CollectionAdapter
public ResponseContext extensionRequest(RequestContext request)
CollectionAdapter
extensionRequest
in interface CollectionAdapter
extensionRequest
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public ResponseContext getCategories(RequestContext request)
CollectionAdapter
getCategories
in interface CollectionAdapter
getCategories
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public abstract Feed getFeed() throws Exception
Exception
public abstract Entry getEntry(Object entryId) throws Exception
Exception
public abstract Entry createEntry(Entry entry) throws Exception
Exception
public abstract Entry updateEntry(Object entryId, Entry entry) throws Exception
Exception
public abstract boolean deleteEntry(Object entryId) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |