public class Feed extends IRoot implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FIND_FEEDS |
static boolean |
DEFAULT_FIND_MEDIA_LINKS |
static boolean |
DEFAULT_FORCE_FEED_MIME_TYPE |
static boolean |
DEFAULT_INDEX_FEED_ITEMS |
static boolean |
DEFAULT_INDEX_ITEM_DOCUMENTS |
static int |
DEFAULT_REFRESH_PERIOD_S |
boolean |
findFeeds |
boolean |
findMediaLinks |
boolean |
forceFeedMimeType |
boolean |
indexFeedItems |
boolean |
indexItemDocuments |
java.util.List<KeyValue> |
keyValue |
int |
refreshPeriodS |
DEFAULT_GROUP, DEFAULT_PRIORITY, DEFAULT_SITE, group, kvs, priority, site, url
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Feed.
|
Feed |
clone()
Creates and returns a deep copy of this Feed.
|
static Feed |
fromString(java.lang.String s)
String representation of this Feed.
|
java.util.List<KeyValue> |
getKeyValue() |
int |
getRefreshPeriodS()
how often to refresh this feed, default 10min
|
boolean |
isFindFeeds()
whether to crawl feeds found in html headers
|
boolean |
isFindMediaLinks()
find
|
boolean |
isForceFeedMimeType()
force processing of url as xml feed (for servers returning buggy content types)
can't work with findFeeds enabled. |
boolean |
isIndexFeedItems()
whether to index all items found in the feed with metas, before crawling them
|
boolean |
isIndexItemDocuments()
whether to crawl the items and index the full item pages
|
Feed |
makeCopy()
Creates and returns a deep copy of this Feed.
|
static Feed |
readFrom(java.io.InputStream is)
Read this Feed from an XML fragment.
|
void |
setFindFeeds(boolean findFeeds)
whether to crawl feeds found in html headers
|
void |
setFindMediaLinks(boolean findMediaLinks)
find
|
void |
setForceFeedMimeType(boolean forceFeedMimeType)
force processing of url as xml feed (for servers returning buggy content types)
can't work with findFeeds enabled. |
void |
setIndexFeedItems(boolean indexFeedItems)
whether to index all items found in the feed with metas, before crawling them
|
void |
setIndexItemDocuments(boolean indexItemDocuments)
whether to crawl the items and index the full item pages
|
void |
setRefreshPeriodS(int refreshPeriodS)
how often to refresh this feed, default 10min
|
java.lang.String |
toString()
String representation of this Feed.
|
Feed |
withFindFeeds(boolean findFeeds) |
Feed |
withFindFeeds(java.lang.Boolean findFeeds) |
Feed |
withFindMediaLinks(boolean findMediaLinks) |
Feed |
withFindMediaLinks(java.lang.Boolean findMediaLinks) |
Feed |
withForceFeedMimeType(boolean forceFeedMimeType) |
Feed |
withForceFeedMimeType(java.lang.Boolean forceFeedMimeType) |
Feed |
withGroup(java.lang.String group) |
Feed |
withIndexFeedItems(boolean indexFeedItems) |
Feed |
withIndexFeedItems(java.lang.Boolean indexFeedItems) |
Feed |
withIndexItemDocuments(boolean indexItemDocuments) |
Feed |
withIndexItemDocuments(java.lang.Boolean indexItemDocuments) |
Feed |
withKeyValue(java.util.Collection<KeyValue> __values) |
Feed |
withKeyValue(KeyValue... __values) |
Feed |
withKvs(java.lang.String kvs) |
Feed |
withPriority(int priority) |
Feed |
withPriority(java.lang.Integer priority) |
Feed |
withRefreshPeriodS(int refreshPeriodS) |
Feed |
withRefreshPeriodS(java.lang.Integer refreshPeriodS) |
Feed |
withSite(boolean site) |
Feed |
withSite(java.lang.Boolean site) |
Feed |
withUrl(java.lang.String url) |
void |
writeTo(java.io.OutputStream os)
Write this Feed as an XML fragment
|
public java.util.List<KeyValue> keyValue
public int refreshPeriodS
public static final int DEFAULT_REFRESH_PERIOD_S
public boolean indexFeedItems
public static final boolean DEFAULT_INDEX_FEED_ITEMS
public boolean indexItemDocuments
public static final boolean DEFAULT_INDEX_ITEM_DOCUMENTS
public boolean findFeeds
public static final boolean DEFAULT_FIND_FEEDS
public boolean forceFeedMimeType
public static final boolean DEFAULT_FORCE_FEED_MIME_TYPE
public boolean findMediaLinks
public static final boolean DEFAULT_FIND_MEDIA_LINKS
public Feed()
public Feed(Feed o)
public Feed withPriority(int priority)
withPriority
in class IRoot
public Feed withPriority(java.lang.Integer priority)
withPriority
in class IRoot
public java.util.List<KeyValue> getKeyValue()
public void setRefreshPeriodS(int refreshPeriodS)
public int getRefreshPeriodS()
public Feed withRefreshPeriodS(int refreshPeriodS)
public Feed withRefreshPeriodS(java.lang.Integer refreshPeriodS)
public void setIndexFeedItems(boolean indexFeedItems)
public boolean isIndexFeedItems()
public Feed withIndexFeedItems(boolean indexFeedItems)
public Feed withIndexFeedItems(java.lang.Boolean indexFeedItems)
public void setIndexItemDocuments(boolean indexItemDocuments)
public boolean isIndexItemDocuments()
public Feed withIndexItemDocuments(boolean indexItemDocuments)
public Feed withIndexItemDocuments(java.lang.Boolean indexItemDocuments)
public void setFindFeeds(boolean findFeeds)
public boolean isFindFeeds()
public Feed withFindFeeds(boolean findFeeds)
public Feed withFindFeeds(java.lang.Boolean findFeeds)
public void setForceFeedMimeType(boolean forceFeedMimeType)
public boolean isForceFeedMimeType()
public Feed withForceFeedMimeType(boolean forceFeedMimeType)
public Feed withForceFeedMimeType(java.lang.Boolean forceFeedMimeType)
public void setFindMediaLinks(boolean findMediaLinks)
public boolean isFindMediaLinks()
public Feed withFindMediaLinks(boolean findMediaLinks)
public Feed withFindMediaLinks(java.lang.Boolean findMediaLinks)
public Feed clone()
public Feed makeCopy()
public static Feed readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
public static Feed fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.