|
||||||||||
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.examples.appserver.custom.SimpleAdapter
public class SimpleAdapter
Constructor Summary | |
---|---|
SimpleAdapter()
|
Method Summary | |
---|---|
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. |
String |
getAuthor(RequestContext request)
|
ResponseContext |
getCategories(RequestContext request)
Get an Atompub Categories document |
ResponseContext |
getEntry(RequestContext request)
Get an entry from the collection |
String |
getEntryID(RequestContext request)
|
ResponseContext |
getFeed(RequestContext request)
Get the collections Atom feed document |
String |
getHref(RequestContext request)
Get the value of the app:collection element's href attribute. |
String |
getId(RequestContext request)
|
String |
getTitle(RequestContext request)
Get the value of the app:collection element's atom:title element. |
ResponseContext |
postEntry(RequestContext request)
Post a new entry to the collection |
ResponseContext |
putEntry(RequestContext request)
Update an existing entry |
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, 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 |
Constructor Detail |
---|
public SimpleAdapter()
Method Detail |
---|
public String getAuthor(RequestContext request) throws ResponseContextException
getAuthor
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
ResponseContextException
public String getId(RequestContext request)
getId
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public String getHref(RequestContext request)
CollectionInfo
getHref
in interface CollectionInfo
getHref
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public String getTitle(RequestContext request)
CollectionInfo
public ResponseContext extensionRequest(RequestContext request)
CollectionAdapter
extensionRequest
in interface CollectionAdapter
extensionRequest
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
public ResponseContext getFeed(RequestContext request)
CollectionAdapter
public ResponseContext deleteEntry(RequestContext request)
CollectionAdapter
public ResponseContext getEntry(RequestContext request)
CollectionAdapter
public ResponseContext postEntry(RequestContext request)
CollectionAdapter
public ResponseContext putEntry(RequestContext request)
CollectionAdapter
public String getEntryID(RequestContext request)
public ResponseContext getCategories(RequestContext request)
CollectionAdapter
getCategories
in interface CollectionAdapter
getCategories
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |