public abstract class BaseMediaAtomCollectionAdapter<E> extends BaseAtomCollectionAdapter<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 |
|---|
BaseMediaAtomCollectionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract E |
doPostMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext) |
protected abstract void |
doPutMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext) |
abstract String |
getMediaContentType(E entry) |
abstract String |
getMediaName(E entry) |
abstract InputStream |
getMediaStream(E entry) |
deleteEntry, doDeleteEntry, doGetEntry, doGetFeedEntries, doPostEntry, doPutEntry, getEntry, getFeedEntries, postEntry, postMedia, putEntry, putMediaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollectionName, getEntryAuthors, getEntryContent, getEntryId, getEntrySummary, getEntryTitle, getEntryUpdated, getFeedTitlepublic abstract String getMediaContentType(E entry)
getMediaContentType in interface AtomCollectionAdapter<E>getMediaContentType in class BaseAtomCollectionAdapter<E>public abstract String getMediaName(E entry) throws AtomException
getMediaName in interface AtomCollectionAdapter<E>getMediaName in class BaseAtomCollectionAdapter<E>AtomExceptionpublic abstract InputStream getMediaStream(E entry) throws AtomException
getMediaStream in interface AtomCollectionAdapter<E>getMediaStream in class BaseAtomCollectionAdapter<E>AtomExceptionprotected abstract E doPostMedia(String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext) throws Exception
doPostMedia in class BaseAtomCollectionAdapter<E>Exceptionprotected abstract void doPutMedia(E entry, String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext) throws Exception
doPutMedia in class BaseAtomCollectionAdapter<E>Exception