Package org.ametys.plugins.syndication
Class FeedResult
- java.lang.Object
-
- org.ametys.plugins.syndication.FeedResult
-
public class FeedResult extends Object
A feed retrieve result.
-
-
Field Summary
Fields Modifier and Type Field Description protected Date_creationDateThe creation date.protected com.rometools.rome.feed.synd.SyndFeed_feedThe feed.protected String_messageErrorThe message error.protected int_statusThe status.static intSTATUS_ERRORStatus indicating that there was an error retrieving the feed.static intSTATUS_OKStatus indicating that the feed was retrieved successfully.static intSTATUS_UNKNOWNThe status is unknown.
-
Constructor Summary
Constructors Constructor Description FeedResult()Build a FeedResult object, status unknown.FeedResult(int status, com.rometools.rome.feed.synd.SyndFeed feed)Build a FeedResult object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreationDate()Get the creation date.StringgetMessageError()Get the message error.intgetStatus()Get the status.com.rometools.rome.feed.synd.SyndFeedgetSynFeed()Get 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 Detail
-
STATUS_UNKNOWN
public static final int STATUS_UNKNOWN
The status is unknown.- See Also:
- Constant Field Values
-
STATUS_OK
public static final int STATUS_OK
Status indicating that the feed was retrieved successfully.- See Also:
- Constant Field Values
-
STATUS_ERROR
public static final int STATUS_ERROR
Status indicating that there was an error retrieving the feed.- See Also:
- Constant Field Values
-
_status
protected int _status
The status.
-
_feed
protected com.rometools.rome.feed.synd.SyndFeed _feed
The feed.
-
_messageError
protected String _messageError
The message error.
-
_creationDate
protected Date _creationDate
The creation date.
-
-
Constructor Detail
-
FeedResult
public FeedResult()
Build a FeedResult object, status unknown.
-
FeedResult
public FeedResult(int status, com.rometools.rome.feed.synd.SyndFeed feed)
Build a FeedResult object.- Parameters:
status- the status.feed- the feed.
-
-
Method Detail
-
getStatus
public int getStatus()
Get the status.- Returns:
- the status
-
setStatus
public void setStatus(int status)
Set the status.- Parameters:
status- the status to set
-
getSynFeed
public com.rometools.rome.feed.synd.SyndFeed getSynFeed()
Get the feed.- Returns:
- the feed
-
getMessageError
public String getMessageError()
Get the message error.- Returns:
- the message error
-
setMessageError
public void setMessageError(String messageError)
Set the message error.- Parameters:
messageError- the message error to set
-
setResponse
public void setResponse(com.rometools.rome.feed.synd.SyndFeed feed)
Set the feed.- Parameters:
feed- the feed to set
-
getCreationDate
public Date getCreationDate()
Get the creation date.- Returns:
- the creation date
-
setCreationDate
public void setCreationDate(Date creationDate)
Set the creation Date.- Parameters:
creationDate- the creation date to set
-
-