BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.feed.RssReader Class Reference
Inheritance diagram for org.turro.elephant.impl.feed.RssReader:
Collaboration diagram for org.turro.elephant.impl.feed.RssReader:

Public Member Functions

 RssReader ()
 
void startConstruction () throws ServletException, IOException
 
String getStart ()
 
String getEnd ()
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractElement
 AbstractElement ()
 
String getId ()
 
String getType ()
 
String getTitle ()
 
void setTitle (String title)
 
Collection< String > getMetas ()
 
void setMetas (Collection< String > metas)
 
ElContext getContext ()
 
IConstructor getConstructor ()
 
void loadData () throws ServletException, IOException
 
void setConfiguration (IConstructor constructor, ElContext context)
 
String getStartTitle ()
 
String getEndTitle ()
 
String getStartBody ()
 
String getEndBody ()
 
String getStartFooter ()
 
String getEndFooter ()
 
String getStartOption ()
 
String getEndOption ()
 
boolean canDisplay ()
 
boolean isSelectable ()
 
boolean isInRole ()
 
boolean canPrint ()
 
String getElementFolder ()
 
boolean isOriginalContext ()
 
void setRootCategories (ElContext root)
 
String getTypeName ()
 
AttributeSupport getAttributes ()
 
void applyChanges ()
 
void populateFromParent ()
 
void setDefaultMetas ()
 
void setConfiguration (Element conf, Element factory)
 

Protected Attributes

Localizer localizer
 
- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractElement
IConstructor constructor
 
ElContext context
 
AttributeSupport attrSupport
 
Element conf = null
 
String[] types
 
String title
 
Collection< String > metas
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 40 of file RssReader.java.

Constructor & Destructor Documentation

◆ RssReader()

org.turro.elephant.impl.feed.RssReader.RssReader ( )

Creates a new instance of RssReader

Definition at line 46 of file RssReader.java.

46  {
47  super();
48  }

Member Function Documentation

◆ getEnd()

String org.turro.elephant.impl.feed.RssReader.getEnd ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 77 of file RssReader.java.

77  {
78  return "</div>";
79  }
Here is the caller graph for this function:

◆ getStart()

String org.turro.elephant.impl.feed.RssReader.getStart ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 72 of file RssReader.java.

72  {
73  return "<div class='rssreader'>";
74  }
Here is the caller graph for this function:

◆ startConstruction()

void org.turro.elephant.impl.feed.RssReader.startConstruction ( ) throws ServletException, IOException

This method start element's construction. It gets called within IConstructor.startConstruction().

Exceptions
javax.servlet.ServletException
java.io.IOException

Implements org.turro.elephant.context.IElement.

Definition at line 51 of file RssReader.java.

51  {
53  PrintWriter out = getConstructor().getOut();
54  out.print(getStart());
55  out.print(getStartBody());
56  String url[] = getAttributes().getAttributeValue("attrib:feed", "").split(",");
57  SyndFeedInput input = new SyndFeedInput();
58  try {
59  SyndFeed feed;
60  for(int i = 0; i < url.length; i++) {
61  feed = input.build(new XmlReader(new URL(url[i])));
62  renderFeed(out, feed);
63  }
64  } catch (MalformedURLException | IllegalArgumentException | FeedException ex) {
65  throw new ServletException(ex);
66  }
67  out.print(getEndBody());
68  out.print(getEnd());
69  }
Here is the call graph for this function:

Member Data Documentation

◆ localizer

Localizer org.turro.elephant.impl.feed.RssReader.localizer
protected

Definition at line 41 of file RssReader.java.


The documentation for this class was generated from the following file: