|
|||||||||
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
AtomHandlerFactory
which is capable of instantiating it.
Method Summary | |
---|---|
void |
deleteEntry(String[] pathInfo)
Delete entry specified by pathInfo. |
String |
getAuthenticatedUsername()
Get username of authenticated user. |
Feed |
getCollection(String[] pathInfo)
Return collection or portion of collection specified by pathInfo. |
Entry |
getEntry(String[] pathInfo)
Get entry specified by pathInfo. |
AtomService |
getIntrospection()
Return AtomService
object that contains the
Workspace objects
available to the currently authenticated user and within those the
Collection avalaible. |
boolean |
isCollectionURI(String[] pathInfo)
Return true if specified pathinfo represents URI of a collection. |
boolean |
isEntryURI(String[] pathInfo)
Return true if specified pathinfo represents URI of an Atom entry. |
boolean |
isIntrospectionURI(String[] pathInfo)
Return true if specified pathinfo represents URI of server's Service Document. |
boolean |
isMediaEditURI(String[] pathInfo)
Return true if specified pathinfo represents media-edit URI. |
Entry |
postEntry(String[] pathInfo,
Entry entry)
Store new entry in collection specified by pathInfo and return representation of entry as it is stored on server. |
Entry |
postMedia(String[] pathInfo,
String title,
String slug,
String contentType,
InputStream is)
Store media data in collection specified by pathInfo, create an Atom media-link entry to store metadata for the new media file and return that entry to the caller. |
Entry |
putEntry(String[] pathInfo,
Entry entry)
Update entry specified by pathInfo and return new entry as represented on the server. |
Entry |
putMedia(String[] pathInfo,
String contentType,
InputStream is)
Update the media file part of a media-link entry. |
Method Detail |
---|
String getAuthenticatedUsername()
AtomService getIntrospection() throws AtomException
AtomService
object that contains the
Workspace
objects
available to the currently authenticated user and within those the
Collection
avalaible.
AtomException
Feed getCollection(String[] pathInfo) throws AtomException
pathInfo
- Used to determine which collection and range
AtomException
Entry postEntry(String[] pathInfo, Entry entry) throws AtomException
pathInfo
- Path info portion of URL
AtomException
Entry getEntry(String[] pathInfo) throws AtomException
pathInfo
- Path info portion of URL
AtomException
Entry putEntry(String[] pathInfo, Entry entry) throws AtomException
pathInfo
- Path info portion of URL
AtomException
void deleteEntry(String[] pathInfo) throws AtomException
pathInfo
- Path info portion of URL
AtomException
Entry postMedia(String[] pathInfo, String title, String slug, String contentType, InputStream is) throws AtomException
AtomException
Entry putMedia(String[] pathInfo, String contentType, InputStream is) throws AtomException
pathInfo
- Path info portion of URL
AtomException
boolean isIntrospectionURI(String[] pathInfo)
boolean isCollectionURI(String[] pathInfo)
boolean isEntryURI(String[] pathInfo)
boolean isMediaEditURI(String[] pathInfo)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |