public class RSSService
- Object
- ConnectionRequest
- RSSService
ImplementsIOProgressListener, ParserCallback
Constructors
public RSSService(String url) | Simple constructor accepting the RSS url |
public RSSService(String url, int limit) | Simple constructor accepting the RSS url |
public RSSService(String url, int limit, int startOffset) | Simple constructor accepting the RSS url |
Methods
public boolean equals(Object o) | Indicates whether some other object is “equal to” this one. |
public int hashCode() | Returns a hash code value for the object. |
protected void readResponse(InputStream input)
throws IOException | Callback for the server response with the input stream from the server. |
public Vector getResults() | The results are presented as a vector of hashtables easily presentable in Codename One |
public boolean parsingError(int errorId, String tag, String attribute, String value, String description) | Called when encountering an error while parsing the XML document. |
public boolean hasMore() | Indicates whether more entries might be available since the limt might have been reached |
public boolean isCreatePlainTextDetails() | Creates an additional “details” attribute in the resulting hashtables which effectively contains a plain text version of the description tag. |
public void setCreatePlainTextDetails(boolean createPlainTextDetails) | Creates an additional “details” attribute in the resulting hashtables which effectively contains a plain text version of the description tag. |
public Image getIconPlaceholder() | |
public void setIconPlaceholder(Image iconPlaceholder) |
Inherited nested types
Inherited fields
Inherited methods
From ConnectionRequest
getDefaultCacheMode, setDefaultCacheMode, isReadResponseForErrorsDefault, setReadResponseForErrorsDefault, isHandleErrorCodesInGlobalErrorHandler, setHandleErrorCodesInGlobalErrorHandler, getCookieHeader, setCookieHeader, isCookiesEnabledDefault, setCookiesEnabledDefault, isDefaultFollowRedirects, setDefaultFollowRedirects, isReadTimeoutSupported, purgeCacheDirectory, getDefaultUserAgent, setDefaultUserAgent, setUseNativeCookieStore, isNativeCookieSharingSupported, fetchJSON, fetchJSONAsync, getCacheMode, setCacheMode, isCheckSSLCertificates, setCheckSSLCertificates, isInsecure, setInsecure, getResponseData, getHttpMethod, setHttpMethod, addRequestHeader, removeRequestHeader, removeRequestHeaderIfUnchanged, checkSSLCertificates, getReadTimeout, setReadTimeout, initConnection, getCachedData, purgeCache, cacheUnmodified, cookieReceived, cookieSent, initCookieHeader, getResponseCode, getResposeCode, shouldConvertPostToGetOnRedirect, readHeaders, readErrorCodeHeaders, getHeader, getHeaders, getHeaderFieldNames, getYield, shouldAutoCloseResponse, handleIOException, handleRuntimeException, handleException, canGetSSLCertificates, getSSLCertificates, handleErrorResponseCode, retry, onRedirect, postResponse, createRequestURL, buildRequestBody, shouldWriteUTFAsGetBytes, kill, shouldStop, isPausable, pause, resume, isPost, setPost, addArgument, removeArgument, removeAllArguments, addArgumentNoEncoding, addArgumentNoEncoding, addArgumentNoEncodingArray, addArgument, addArgumentArray, addArgument, addArguments, getContentType, setContentType, isWriteRequest, setWriteRequest, isReadRequest, setReadRequest, isPaused, setPaused, isKilled, setKilled, getPriority, setPriority, getUserAgent, setUserAgent, isFollowRedirects, setFollowRedirects, getTimeout, setTimeout, getContentLength, ioStreamUpdate, getUrl, setUrl, addResponseListener, removeResponseListener, addResponseCodeListener, addExceptionListener, removeResponseCodeListener, removeExceptionListener, hasResponseListeners, fireResponseListener, isDuplicateSupported, setDuplicateSupported, validate, getDisposeOnCompletion, setDisposeOnCompletion, getShowOnInit, setShowOnInit, getSilentRetryCount, setSilentRetryCount, isFailSilently, setFailSilently, isReadResponseForErrors, setReadResponseForErrors, getResponseContentType, isRedirecting, getDestinationFile, setDestinationFile, getDestinationStorage, setDestinationStorage, isCookiesEnabled, setCookiesEnabled, setChunkedStreamingMode, downloadImageToStorage, downloadImageToStorage, downloadImageToStorage, downloadImageToStorage, downloadImageToStorage, downloadImageToStorage, downloadImageToFileSystem, downloadImageToFileSystem, downloadImageToFileSystem, downloadImageToFileSystem, downloadImageToFileSystem, downloadImageToFileSystem, getRequestBody, setRequestBody, setRequestBody, getRequestBodyData, getResponseErrorMessage
Constructor details
RSSService
public RSSService(String url)Parameters
urlString- rss link
RSSService
public RSSService(String url, int limit)Parameters
urlString- rss link
limitint- the limit on the number of RSS entries supported
RSSService
public RSSService(String url, int limit, int startOffset)Parameters
urlString- rss link
limitint- the limit on the number of RSS entries supported
startOffsetint- indicates the entry offset which we are interested in, this is useful if previously the limit for RSS entries was reached.
Method details
equals
public boolean equals(Object o)hashCode
public int hashCode()readResponse
protected void readResponse(InputStream input)
throws IOExceptionParameters
inputInputStream- the input stream containing the response
Throws
IOException- when a read input occurs
getResults
public Vector getResults()Returns
parsingError
public boolean parsingError(int errorId, String tag, String attribute, String value, String description)Parameters
errorIdint- The error ID, one of the ERROR_* constants
tagString- The tag in which the error occured (Can be null for non-tag related errors)
attributeString- The attribute in which the error occured (Can be null for non-attribute related errors)
valueString- The value in which the error occured (Can be null for non-value related errors)
descriptionString- A verbal description of the error
Returns
hasMore
public boolean hasMore()Returns
isCreatePlainTextDetails
public boolean isCreatePlainTextDetails()Returns
setCreatePlainTextDetails
public void setCreatePlainTextDetails(boolean createPlainTextDetails)Parameters
createPlainTextDetailsboolean- the createPlainTextDetails to set
getIconPlaceholder
public Image getIconPlaceholder()Returns
setIconPlaceholder
public void setIconPlaceholder(Image iconPlaceholder)Parameters
iconPlaceholderImage- the iconPlaceholder to set