@Deprecated public class FileBasedAtomHandler extends Object implements AtomHandler
com.rometools.rome.propono.atom.server.AtomHandler implementation that stores
entries and media-entries to disk. Implemented using
com.rometools.rome.propono.atom.server.impl.FileBasedAtomService.| Constructor and Description |
|---|
FileBasedAtomHandler(javax.servlet.http.HttpServletRequest req)
Deprecated.
Construct handler to handle one request.
|
FileBasedAtomHandler(javax.servlet.http.HttpServletRequest req,
String uploaddir)
Deprecated.
Contruct handler for one request, using specified file storage directory.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authenticateBASIC(javax.servlet.http.HttpServletRequest request)
Deprecated.
BASIC authentication.
|
void |
deleteEntry(AtomRequest areq)
Deprecated.
Delete entry specified by pathInfo.
|
String |
getAtomProtocolURL()
Deprecated.
Get base URI of Atom protocol implementation.
|
AtomService |
getAtomService(AtomRequest areq)
Deprecated.
Return introspection document
|
String |
getAuthenticatedUsername()
Deprecated.
Get username of authenticated user
|
Categories |
getCategories(AtomRequest areq)
Deprecated.
Returns null because we use in-line categories.
|
Feed |
getCollection(AtomRequest areq)
Deprecated.
Get collection specified by pathinfo.
|
Entry |
getEntry(AtomRequest areq)
Deprecated.
Get entry specified by pathInfo.
|
AtomMediaResource |
getMediaResource(AtomRequest areq)
Deprecated.
Get media resource specified by request.
|
boolean |
isAtomServiceURI(AtomRequest areq)
Deprecated.
Return true if specified pathinfo represents URI of service doc.
|
boolean |
isCategoriesURI(AtomRequest areq)
Deprecated.
Return true if specified pathinfo represents URI of category doc.
|
boolean |
isCollectionURI(AtomRequest areq)
Deprecated.
Return true if specified pathinfo represents URI of a collection.
|
boolean |
isEntryURI(AtomRequest areq)
Deprecated.
Return true if specified pathinfo represents URI of an Atom entry.
|
boolean |
isMediaEditURI(AtomRequest areq)
Deprecated.
Return true if specified pathinfo represents media-edit URI.
|
Entry |
postEntry(AtomRequest areq,
Entry entry)
Deprecated.
Create a new entry specified by pathInfo and posted entry.
|
Entry |
postMedia(AtomRequest areq,
Entry entry)
Deprecated.
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.
|
void |
putEntry(AtomRequest areq,
Entry entry)
Deprecated.
Update entry specified by pathInfo and posted entry.
|
void |
putMedia(AtomRequest areq)
Deprecated.
Update the media file part of a media-link entry.
|
boolean |
validateUser(String login,
String password)
Deprecated.
Method used for validating user.
|
public FileBasedAtomHandler(javax.servlet.http.HttpServletRequest req)
req - Request to be handled.public FileBasedAtomHandler(javax.servlet.http.HttpServletRequest req,
String uploaddir)
req - Request to be handled.uploaddir - File storage upload dir.public boolean validateUser(String login, String password)
login - user submitted login idpassword - user submitted passwordpublic String getAuthenticatedUsername()
getAuthenticatedUsername in interface AtomHandlerpublic String getAtomProtocolURL()
public AtomService getAtomService(AtomRequest areq) throws AtomException
getAtomService in interface AtomHandlercom.rometools.rome.propono.atom.server.AtomException - Unexpected exception.AtomExceptionpublic Categories getCategories(AtomRequest areq) throws AtomException
getCategories in interface AtomHandlercom.rometools.rome.propono.atom.server.AtomException - Unexpected exception.AtomExceptionpublic Feed getCollection(AtomRequest areq) throws AtomException
getCollection in interface AtomHandlerareq - Details of HTTP requestcom.rometools.rome.propono.atom.server.AtomException - Invalid collection or other
exception.AtomExceptionpublic Entry postEntry(AtomRequest areq, Entry entry) throws AtomException
postEntry in interface AtomHandlerentry - Entry to be added to collection.areq - Details of HTTP requestcom.rometools.rome.propono.atom.server.AtomException - On invalid collection or other
error.AtomExceptionpublic Entry getEntry(AtomRequest areq) throws AtomException
getEntry in interface AtomHandlerareq - Details of HTTP requestcom.rometools.rome.propono.atom.server.AtomException - On invalid pathinfo or other
error.AtomExceptionpublic void putEntry(AtomRequest areq, Entry entry) throws AtomException
putEntry in interface AtomHandlerentry - areq - Details of HTTP requestcom.rometools.rome.propono.atom.server.AtomExceptionAtomExceptionpublic void deleteEntry(AtomRequest areq) throws AtomException
deleteEntry in interface AtomHandlerareq - Details of HTTP requestAtomExceptionpublic Entry postMedia(AtomRequest areq, Entry entry) throws AtomException
postMedia in interface AtomHandlerareq - Details of HTTP requestentry - New entry initialzied with only title and content typeAtomExceptionpublic void putMedia(AtomRequest areq) throws AtomException
putMedia in interface AtomHandlerareq - Details of HTTP request Assuming pathInfo of form /user-name/resource/nameAtomExceptionpublic AtomMediaResource getMediaResource(AtomRequest areq) throws AtomException
AtomHandlergetMediaResource in interface AtomHandlerareq - Details of HTTP requestAtomExceptionpublic boolean isAtomServiceURI(AtomRequest areq)
isAtomServiceURI in interface AtomHandlerareq - Details of HTTP requestpublic boolean isCategoriesURI(AtomRequest areq)
isCategoriesURI in interface AtomHandlerareq - Details of HTTP requestpublic boolean isCollectionURI(AtomRequest areq)
isCollectionURI in interface AtomHandlerareq - Details of HTTP requestpublic boolean isEntryURI(AtomRequest areq)
isEntryURI in interface AtomHandlerareq - Details of HTTP requestpublic boolean isMediaEditURI(AtomRequest areq)
isMediaEditURI in interface AtomHandlerareq - Details of HTTP requestpublic String authenticateBASIC(javax.servlet.http.HttpServletRequest request)
Copyright © 2023. All rights reserved.