public abstract class BaseAtomCollectionAdapter<E> extends java.lang.Object implements AtomCollectionAdapter<E>
SC_BAD_CONTENT, SC_BAD_REQUEST, SC_CONFLICT, SC_CREATED, SC_FORBIDDEN, SC_INTERNAL_SERVER_ERROR, SC_NOT_FOUND, SC_NOT_MODIFIED, SC_OK, SC_UNAUTHORIZED| Constructor and Description |
|---|
BaseAtomCollectionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext) |
protected void |
doDeleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext) |
protected abstract E |
doGetEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext) |
protected abstract java.lang.Iterable<E> |
doGetFeedEntries(AtomRequestContext atomRequestContext) |
protected E |
doPostEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext) |
protected E |
doPostMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext) |
protected void |
doPutEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext) |
protected void |
doPutMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext) |
E |
getEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext) |
java.lang.Iterable<E> |
getFeedEntries(AtomRequestContext atomRequestContext) |
java.lang.String |
getMediaContentType(E entry) |
java.lang.String |
getMediaName(E entry) |
java.io.InputStream |
getMediaStream(E entry) |
E |
postEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext) |
E |
postMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext) |
void |
putEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext) |
void |
putMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollectionName, getEntryAuthors, getEntryContent, getEntryId, getEntrySummary, getEntryTitle, getEntryUpdated, getFeedTitlepublic void deleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
deleteEntry in interface AtomCollectionAdapter<E>AtomExceptionpublic E getEntry(java.lang.String resourceName, AtomRequestContext atomRequestContext) throws AtomException
getEntry in interface AtomCollectionAdapter<E>AtomExceptionpublic java.lang.Iterable<E> getFeedEntries(AtomRequestContext atomRequestContext) throws AtomException
getFeedEntries in interface AtomCollectionAdapter<E>AtomExceptionpublic java.lang.String getMediaContentType(E entry)
getMediaContentType in interface AtomCollectionAdapter<E>public java.lang.String getMediaName(E entry) throws AtomException
getMediaName in interface AtomCollectionAdapter<E>AtomExceptionpublic java.io.InputStream getMediaStream(E entry) throws AtomException
getMediaStream in interface AtomCollectionAdapter<E>AtomExceptionpublic E postEntry(java.lang.String title, java.lang.String summary, java.lang.String content, java.util.Date date, AtomRequestContext atomRequestContext) throws AtomException
postEntry in interface AtomCollectionAdapter<E>AtomExceptionpublic E postMedia(java.lang.String mimeType, java.lang.String slug, java.io.InputStream inputStream, AtomRequestContext atomRequestContext) throws AtomException
postMedia in interface AtomCollectionAdapter<E>AtomExceptionpublic void putEntry(E entry, java.lang.String title, java.lang.String summary, java.lang.String content, java.util.Date date, AtomRequestContext atomRequestContext) throws AtomException
putEntry in interface AtomCollectionAdapter<E>AtomExceptionpublic void putMedia(E entry, java.lang.String mimeType, java.lang.String slug, java.io.InputStream inputStream, AtomRequestContext atomRequestContext) throws AtomException
putMedia in interface AtomCollectionAdapter<E>AtomExceptionprotected void doDeleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
java.lang.Exceptionprotected abstract E doGetEntry(java.lang.String resourceName, AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.Iterable<E> doGetFeedEntries(AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exceptionprotected E doPostEntry(java.lang.String title, java.lang.String summary, java.lang.String content, java.util.Date date, AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exceptionprotected E doPostMedia(java.lang.String mimeType, java.lang.String slug, java.io.InputStream inputStream, AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exceptionprotected void doPutEntry(E entry, java.lang.String title, java.lang.String summary, java.lang.String content, java.util.Date date, AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exceptionprotected void doPutMedia(E entry, java.lang.String mimeType, java.lang.String slug, java.io.InputStream inputStream, AtomRequestContext atomRequestContext) throws java.lang.Exception
java.lang.Exception