F
- the feed class associated with the bound subtype.E
- the entry class associated with the bound subtype.public abstract class MediaFeed<F extends BaseFeed,E extends BaseEntry> extends BaseFeed<F,E>
BaseFeed
to add media-related
operations for feeds that contain media content.BaseFeed.FeedHandler, BaseFeed.FeedState
Source.SourceHandler, Source.SourceState
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
entries, entryClass, feedState
xmlBlob
localName, namespace
Modifier | Constructor and Description |
---|---|
protected |
MediaFeed(java.lang.Class<? extends E> entryClass) |
protected |
MediaFeed(java.lang.Class<? extends E> entryClass,
BaseFeed<?,?> sourceFeed) |
Modifier and Type | Method and Description |
---|---|
E |
insert(MediaSource media)
Inserts a new media resource into the feed, if the feed is currently
associated with a Service.
|
protected <T extends E> |
insert(MediaSource media,
java.lang.Class<T> mediaEntryClass)
Inserts a new media resource into the feed, if the feed is currently
associated with a Service.
|
void |
setService(Service v)
Sets that GData
Service instance associated with this feed. |
addAdaptor, createEntry, declareExtensions, generate, generateAtom, generateFeedEnd, generateFeedStart, generateRss, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEntryPostLink, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getKind, getNextLink, getPreviousLink, getSelectedFields, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, getVersionId, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setKind, setSelectedFields, setStartIndex, setTotalResults, setVersionId, visitChildren
addHtmlLink, addLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getGenerator, getHtmlLink, getIcon, getId, getLink, getLinks, getLinks, getLogo, getRights, getSubtitle, getTitle, getUpdated, removeLinks, removeLinks, setGenerator, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdated
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenerator, getLogo, getSubtitle, setGenerator, setLogo
addLink, getAuthors, getCategories, getId, getLink, getLinks, getTitle, getUpdated, removeLinks, removeLinks, setId, setUpdated
protected MediaFeed(java.lang.Class<? extends E> entryClass)
public void setService(Service v)
BaseFeed
Service
instance associated with this feed.setService
in interface IAtom
setService
in class BaseFeed<F extends BaseFeed,E extends BaseEntry>
public E insert(MediaSource media) throws ServiceException, java.io.IOException
ServiceException
- If there is no associated GData service or the service is
unable to perform the insertion.java.lang.UnsupportedOperationException
- If insert is not supported for the target feed.java.io.IOException
- If there is an error communicating with the GData service.protected <T extends E> T insert(MediaSource media, java.lang.Class<T> mediaEntryClass) throws ServiceException, java.io.IOException
ServiceException
- If there is no associated GData service or the service is
unable to perform the insertion.java.lang.UnsupportedOperationException
- If insert is not supported for the target feed.java.io.IOException
- If there is an error communicating with the GData service.