Package org.ametys.plugins.syndication
Class FeedResult
java.lang.Object
org.ametys.plugins.syndication.FeedResult
A feed retrieve result.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DateThe creation date.protected com.rometools.rome.feed.synd.SyndFeedThe feed.protected StringThe message error.protected intThe status.static final intStatus indicating that there was an error retrieving the feed.static final intStatus indicating that the feed was retrieved successfully.static final intThe status is unknown.
- 
Constructor SummaryConstructorsConstructorDescriptionBuild a FeedResult object, status unknown.FeedResult(int status, com.rometools.rome.feed.synd.SyndFeed feed) Build a FeedResult object.
- 
Method SummaryModifier and TypeMethodDescriptionGet the creation date.Get the message error.intGet the status.com.rometools.rome.feed.synd.SyndFeedGet the feed.voidsetCreationDate(Date creationDate) Set the creation Date.voidsetMessageError(String messageError) Set the message error.voidsetResponse(com.rometools.rome.feed.synd.SyndFeed feed) Set the feed.voidsetStatus(int status) Set the status.
- 
Field Details- 
STATUS_UNKNOWNThe status is unknown.- See Also:
 
- 
STATUS_OKStatus indicating that the feed was retrieved successfully.- See Also:
 
- 
STATUS_ERRORStatus indicating that there was an error retrieving the feed.- See Also:
 
- 
_statusThe status.
- 
_feedThe feed.
- 
_messageErrorThe message error.
- 
_creationDateThe creation date.
 
- 
- 
Constructor Details- 
FeedResultpublic FeedResult()Build a FeedResult object, status unknown.
- 
FeedResultBuild a FeedResult object.- Parameters:
- status- the status.
- feed- the feed.
 
 
- 
- 
Method Details- 
getStatusGet the status.- Returns:
- the status
 
- 
setStatusSet the status.- Parameters:
- status- the status to set
 
- 
getSynFeedGet the feed.- Returns:
- the feed
 
- 
getMessageErrorGet the message error.- Returns:
- the message error
 
- 
setMessageErrorSet the message error.- Parameters:
- messageError- the message error to set
 
- 
setResponseSet the feed.- Parameters:
- feed- the feed to set
 
- 
getCreationDateGet the creation date.- Returns:
- the creation date
 
- 
setCreationDateSet the creation Date.- Parameters:
- creationDate- the creation date to set
 
 
-