Package org.ametys.plugins.syndication
Class FeedResult
java.lang.Object
org.ametys.plugins.syndication.FeedResult
A feed retrieve result.
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionBuild a FeedResult object, status unknown.FeedResult(int status, com.rometools.rome.feed.synd.SyndFeed feed) Build a FeedResult object. -
Method Summary
Modifier 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_UNKNOWN
The status is unknown.- See Also:
-
STATUS_OK
Status indicating that the feed was retrieved successfully.- See Also:
-
STATUS_ERROR
Status indicating that there was an error retrieving the feed.- See Also:
-
_status
The status. -
_feed
The feed. -
_messageError
The message error. -
_creationDate
The creation date.
-
-
Constructor Details
-
FeedResult
public FeedResult()Build a FeedResult object, status unknown. -
FeedResult
Build a FeedResult object.- Parameters:
status- the status.feed- the feed.
-
-
Method Details
-
getStatus
Get the status.- Returns:
- the status
-
setStatus
Set the status.- Parameters:
status- the status to set
-
getSynFeed
Get the feed.- Returns:
- the feed
-
getMessageError
Get the message error.- Returns:
- the message error
-
setMessageError
Set the message error.- Parameters:
messageError- the message error to set
-
setResponse
Set the feed.- Parameters:
feed- the feed to set
-
getCreationDate
Get the creation date.- Returns:
- the creation date
-
setCreationDate
Set the creation Date.- Parameters:
creationDate- the creation date to set
-