public class FeedResult extends Object
Modifier and Type | Field and 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 and Description |
---|
FeedResult()
Build a FeedResult object, status unknown.
|
FeedResult(int status,
com.rometools.rome.feed.synd.SyndFeed feed)
Build a FeedResult object.
|
Modifier and Type | Method and 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.
|
public static final int STATUS_UNKNOWN
public static final int STATUS_OK
public static final int STATUS_ERROR
protected int _status
protected com.rometools.rome.feed.synd.SyndFeed _feed
protected String _messageError
protected Date _creationDate
public FeedResult()
public FeedResult(int status, com.rometools.rome.feed.synd.SyndFeed feed)
status
- the status.feed
- the feed.public int getStatus()
public void setStatus(int status)
status
- the status to setpublic com.rometools.rome.feed.synd.SyndFeed getSynFeed()
public String getMessageError()
public void setMessageError(String messageError)
messageError
- the message error to setpublic void setResponse(com.rometools.rome.feed.synd.SyndFeed feed)
feed
- the feed to setpublic Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
- the creation date to set