Package org.ametys.plugins.syndication
Class FeedResult
java.lang.Object
org.ametys.plugins.syndication.FeedResult
A feed retrieve result.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Date
The creation date.protected com.rometools.rome.feed.synd.SyndFeed
The feed.protected String
The message error.protected int
The status.static final int
Status indicating that there was an error retrieving the feed.static final int
Status indicating that the feed was retrieved successfully.static final int
The status is unknown. -
Constructor Summary
ConstructorDescriptionBuild 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.int
Get the status.com.rometools.rome.feed.synd.SyndFeed
Get the feed.void
setCreationDate
(Date creationDate) Set the creation Date.void
setMessageError
(String messageError) Set the message error.void
setResponse
(com.rometools.rome.feed.synd.SyndFeed feed) Set the feed.void
setStatus
(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
-