public class RssMacroParameters extends Object
RssMacro
Macro.Constructor and Description |
---|
RssMacroParameters() |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
String |
getEncoding() |
String |
getFeed() |
URL |
getFeedURL() |
String |
getWidth() |
boolean |
isContent() |
boolean |
isDecoration() |
boolean |
isImage() |
void |
setContent(boolean content) |
void |
setCount(int count) |
void |
setDecoration(boolean decoration) |
void |
setEncoding(String encoding) |
void |
setFeed(String feed) |
void |
setImage(boolean image) |
void |
setWidth(String width) |
public String getFeed()
public void setFeed(String feed) throws org.xwiki.rendering.macro.parameter.MacroParameterException
feed
- the RSS feed URL.org.xwiki.rendering.macro.parameter.MacroParameterException
- if the feed URL is malformed.public void setImage(boolean image)
image
- whether to display the feed's image.public boolean isImage()
public void setWidth(String width)
width
- the width of the RSS box, that will dismiss potential CSS rules defining its default value.public String getWidth()
public void setCount(int count)
count
- the number of feed items to display.public int getCount()
public URL getFeedURL()
public void setContent(boolean content)
content
- if "true" displays the content of each feed in addition to the feed item linkpublic boolean isContent()
public void setDecoration(boolean decoration)
decoration
- if "true" displays UI decorations around feed and feed entries (RSS feed icon, feed items in
boxes, etc).public boolean isDecoration()
public void setEncoding(String encoding)
encoding
- the encoding to use when reading the RSS Feedpublic String getEncoding()
Copyright © 2004–2017 XWiki. All rights reserved.