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
_creationDate
The creation date.protected com.rometools.rome.feed.synd.SyndFeed
_feed
The feed.protected String
_messageError
The message error.protected int
_status
The status.static int
STATUS_ERROR
Status indicating that there was an error retrieving the feed.static int
STATUS_OK
Status indicating that the feed was retrieved successfully.static int
STATUS_UNKNOWN
The 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 Date
getCreationDate()
Get the creation date.String
getMessageError()
Get the message error.int
getStatus()
Get the status.com.rometools.rome.feed.synd.SyndFeed
getSynFeed()
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 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
-
-