|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AtomHandler
Interface for handling single Atom protocol requests.
To create your own Atom protocol implementation you must implement this
interface and create a concrete sub-class of
com.sun.syndication.propono.atom.server.AtomHandlerFactory
which is capable of instantiating it.
Method Summary | |
---|---|
void |
deleteEntry(AtomRequest req)
Delete entry specified by request. |
AtomService |
getAtomService(AtomRequest req)
Return com.sun.syndication.propono.atom.common.AtomService
object that contains the
com.sun.syndication.propono.atom.common.Workspace objects
available to the currently authenticated user and within those the
com.sun.syndication.propono.atom.common.Collection avalaible. |
String |
getAuthenticatedUsername()
Get username of authenticated user. |
Categories |
getCategories(AtomRequest req)
Get categories, a list of Categories objects |
com.sun.syndication.feed.atom.Feed |
getCollection(AtomRequest req)
Return collection or portion of collection specified by request. |
com.sun.syndication.feed.atom.Entry |
getEntry(AtomRequest req)
Get entry specified by request. |
AtomMediaResource |
getMediaResource(AtomRequest req)
Get media resource specified by request. |
boolean |
isAtomServiceURI(AtomRequest req)
Return true if specified request represents URI of a Service Document. |
boolean |
isCategoriesURI(AtomRequest req)
Return true if specified request represents URI of a Categories Document. |
boolean |
isCollectionURI(AtomRequest req)
Return true if specified request represents URI of a collection. |
boolean |
isEntryURI(AtomRequest req)
Return true if specified request represents URI of an Atom entry. |
boolean |
isMediaEditURI(AtomRequest req)
Return true if specified patrequesthinfo represents media-edit URI. |
com.sun.syndication.feed.atom.Entry |
postEntry(AtomRequest req,
com.sun.syndication.feed.atom.Entry entry)
Store new entry in collection specified by request and return representation of entry as it is stored on server. |
com.sun.syndication.feed.atom.Entry |
postMedia(AtomRequest req,
com.sun.syndication.feed.atom.Entry entry)
Store media data in collection specified by request, create an Atom media-link entry to store metadata for the new media file and return that entry to the caller. |
void |
putEntry(AtomRequest req,
com.sun.syndication.feed.atom.Entry entry)
Update entry specified by request and return new entry as represented on the server. |
void |
putMedia(AtomRequest req)
Update the media file part of a media-link entry. |
Method Detail |
---|
String getAuthenticatedUsername()
AtomService getAtomService(AtomRequest req) throws AtomException
com.sun.syndication.propono.atom.common.AtomService
object that contains the
com.sun.syndication.propono.atom.common.Workspace
objects
available to the currently authenticated user and within those the
com.sun.syndication.propono.atom.common.Collection
avalaible.
AtomException
Categories getCategories(AtomRequest req) throws AtomException
AtomException
com.sun.syndication.feed.atom.Feed getCollection(AtomRequest req) throws AtomException
req
- Details of HTTP request
AtomException
com.sun.syndication.feed.atom.Entry postEntry(AtomRequest req, com.sun.syndication.feed.atom.Entry entry) throws AtomException
req
- Details of HTTP request
AtomException
com.sun.syndication.feed.atom.Entry getEntry(AtomRequest req) throws AtomException
req
- Details of HTTP request
AtomException
AtomMediaResource getMediaResource(AtomRequest req) throws AtomException
req
- Details of HTTP request
AtomException
void putEntry(AtomRequest req, com.sun.syndication.feed.atom.Entry entry) throws AtomException
req
- Details of HTTP request
AtomException
void deleteEntry(AtomRequest req) throws AtomException
req
- Details of HTTP request
AtomException
com.sun.syndication.feed.atom.Entry postMedia(AtomRequest req, com.sun.syndication.feed.atom.Entry entry) throws AtomException
req
- Details of HTTP requestentry
- New entry initialzied with only title and content type
AtomException
void putMedia(AtomRequest req) throws AtomException
req
- Details of HTTP request
AtomException
boolean isAtomServiceURI(AtomRequest req)
req
- Details of HTTP requestboolean isCategoriesURI(AtomRequest req)
req
- Details of HTTP requestboolean isCollectionURI(AtomRequest req)
req
- Details of HTTP requestboolean isEntryURI(AtomRequest req)
req
- Details of HTTP requestboolean isMediaEditURI(AtomRequest req)
req
- Details of HTTP request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |