org.mule.module.rss.routing
Class FeedLastUpdatedFilter
java.lang.Object
org.mule.module.rss.routing.FeedLastUpdatedFilter
- All Implemented Interfaces:
- Filter
public class FeedLastUpdatedFilter
- extends Object
- implements Filter
Will filter a feed who's update date has changed since the last time it was read. Some feeds to no update
this value so setAcceptWithoutUpdateDate(boolean)
can be set to always consume the feed
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeedLastUpdatedFilter
public FeedLastUpdatedFilter()
FeedLastUpdatedFilter
public FeedLastUpdatedFilter(Date lastUpdate)
accept
public boolean accept(MuleMessage message)
- Description copied from interface:
Filter
- Check a given message against this filter.
- Specified by:
accept
in interface Filter
- Parameters:
message
- a non null message to filter.
- Returns:
true
if the message matches the filter
isAcceptWithoutUpdateDate
public boolean isAcceptWithoutUpdateDate()
setAcceptWithoutUpdateDate
public void setAcceptWithoutUpdateDate(boolean acceptWithoutUpdateDate)
getLastUpdate
public Date getLastUpdate()
setLastUpdate
public void setLastUpdate(Date lastUpdate)
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.