@Deprecated public class FileBasedAtomService extends AtomService
# Define list of collections to be offered propono.atomserver.filebased.collections=entries,gifimages # Defines 'entries' collection, accepts entries propono.atomserver.filebased.collection.entries.title=Entries propono.atomserver.filebased.collection.entries.singular=entry propono.atomserver.filebased.collection.entries.plural=entries propono.atomserver.filebased.collection.entries.accept=application/atom+xml;type=entry propono.atomserver.filebased.collection.entries.categories=general,category1,category2 # Defines 'gifimages' collection, accepts only GIF files propono.atomserver.filebased.collection.gifimages.title=GIF Images propono.atomserver.filebased.collection.gifimages.singular=gif propono.atomserver.filebased.collection.gifimages.plural=gifs propono.atomserver.filebased.collection.gifimages.accept=image/gif propono.atomserver.filebased.collection.gifimages.categories=general,category1,category2If no such properties are found, then service will fall back to two collections: 'entries' for Atom entries and 'resources' for any content-type.
URI structure used for accessing collections and entries
Collection feed (URI allows GET to get collection, POST to add to it)
[servlet-context-uri]/app/[workspace-handle]/[collection-plural]
Collection entry (URI allows GET, PUT and DELETE)
[servlet-context-uri]/app/[workspace-handle]/[collection-singular]/[entryid]
Collection entry media (URI allows GET, PUT and DELETE)
[servlet-context-uri]/app/[workspace-handle]/[collection-singular]/media/[entryid]
Categories URI if not using inline categories (URI allows GET)
[servlet-context-uri]/app/[workspace-handle]/[collection-plural]/categories
Directory structure used to store collections and entries
Collection feed (kept constantly up to date)
[servlet-context-dir]/[workspace-handle]/[collection-plural]/feed.xml
Collection entry (individual entries also stored as entry.xml files)
[servlet-context-dir]/[workspace-handle]/[collection-plural]/id/entry.xml
Collection entry media (media file stored under entry directory)
[servlet-context-dir]/[workspace-handle]/[collection-plural]/id/media/id
Modifier and Type | Field and Description |
---|---|
private static java.util.Properties |
cacheProps
Deprecated.
|
private java.util.Map<java.lang.String,FileBasedCollection> |
collectionMap
Deprecated.
|
private boolean |
firstTime
Deprecated.
|
private java.util.Map<java.lang.String,FileBasedWorkspace> |
workspaceMap
Deprecated.
|
ATOM_FORMAT, ATOM_PROTOCOL
Constructor and Description |
---|
FileBasedAtomService(java.lang.String userName,
java.lang.String baseDir,
java.lang.String contextURI,
java.lang.String contextPath,
java.lang.String servletPath)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) FileBasedCollection |
findCollectionByHandle(java.lang.String handle,
java.lang.String collection)
Deprecated.
|
(package private) FileBasedWorkspace |
findWorkspaceByHandle(java.lang.String handle)
Deprecated.
Find workspace by handle, returns null of not found.
|
addWorkspace, documentToService, findWorkspace, getWorkspaces, serviceToDocument, setWorkspaces
private final java.util.Map<java.lang.String,FileBasedWorkspace> workspaceMap
private final java.util.Map<java.lang.String,FileBasedCollection> collectionMap
private static java.util.Properties cacheProps
private boolean firstTime
public FileBasedAtomService(java.lang.String userName, java.lang.String baseDir, java.lang.String contextURI, java.lang.String contextPath, java.lang.String servletPath) throws java.lang.Exception
java.lang.Exception
FileBasedWorkspace findWorkspaceByHandle(java.lang.String handle)
FileBasedCollection findCollectionByHandle(java.lang.String handle, java.lang.String collection)