public interface AtomCollectionAdapter<E>
Modifier and Type | Field and Description |
---|---|
static int |
SC_BAD_CONTENT |
static int |
SC_BAD_REQUEST |
static int |
SC_CONFLICT |
static int |
SC_CREATED |
static int |
SC_FORBIDDEN |
static int |
SC_INTERNAL_SERVER_ERROR |
static int |
SC_NOT_FOUND |
static int |
SC_NOT_MODIFIED |
static int |
SC_OK |
static int |
SC_UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
void |
deleteEntry(String resourceName,
AtomRequestContext atomRequestContext) |
String |
getCollectionName() |
E |
getEntry(String resourceName,
AtomRequestContext atomRequestContext) |
List<String> |
getEntryAuthors(E entry) |
AtomEntryContent |
getEntryContent(E entry,
AtomRequestContext atomRequestContext) |
String |
getEntryId(E entry) |
String |
getEntrySummary(E entry) |
String |
getEntryTitle(E entry) |
Date |
getEntryUpdated(E entry) |
Iterable<E> |
getFeedEntries(AtomRequestContext atomRequestContext) |
String |
getFeedTitle(AtomRequestContext atomRequestContext) |
String |
getMediaContentType(E entry) |
String |
getMediaName(E entry) |
InputStream |
getMediaStream(E entry) |
E |
postEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext) |
E |
postMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext) |
void |
putEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext) |
void |
putMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext) |
static final int SC_BAD_CONTENT
static final int SC_BAD_REQUEST
static final int SC_CONFLICT
static final int SC_CREATED
static final int SC_FORBIDDEN
static final int SC_INTERNAL_SERVER_ERROR
static final int SC_NOT_FOUND
static final int SC_NOT_MODIFIED
static final int SC_OK
static final int SC_UNAUTHORIZED
void deleteEntry(String resourceName, AtomRequestContext atomRequestContext) throws AtomException
AtomException
String getCollectionName()
E getEntry(String resourceName, AtomRequestContext atomRequestContext) throws AtomException
AtomException
List<String> getEntryAuthors(E entry)
AtomEntryContent getEntryContent(E entry, AtomRequestContext atomRequestContext)
String getEntryId(E entry)
String getEntrySummary(E entry)
String getEntryTitle(E entry)
Date getEntryUpdated(E entry)
Iterable<E> getFeedEntries(AtomRequestContext atomRequestContext) throws AtomException
AtomException
String getFeedTitle(AtomRequestContext atomRequestContext)
String getMediaContentType(E entry)
String getMediaName(E entry) throws AtomException
AtomException
InputStream getMediaStream(E entry) throws AtomException
AtomException
E postEntry(String title, String summary, String content, Date date, AtomRequestContext atomRequestContext) throws AtomException
AtomException
E postMedia(String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext) throws AtomException
AtomException
void putEntry(E entry, String title, String summary, String content, Date date, AtomRequestContext atomRequestContext) throws AtomException
AtomException
void putMedia(E entry, String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext) throws AtomException
AtomException