BrightSide Workbench Full Report + Source Code
org.turro.elephant.sitemap.SitemapGenerator Class Reference

Public Member Functions

 SitemapGenerator () throws IOException
 
void generate () throws IOException
 

Static Public Member Functions

static void generateSitemap ()
 

Detailed Description

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

Definition at line 34 of file SitemapGenerator.java.

Constructor & Destructor Documentation

◆ SitemapGenerator()

org.turro.elephant.sitemap.SitemapGenerator.SitemapGenerator ( ) throws IOException

Definition at line 38 of file SitemapGenerator.java.

38  {
39  this.writer = new FileWriterWithEncoding(ElephantContext.getRealPath("/sitemap.xml"), "UTF-8");
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ generate()

void org.turro.elephant.sitemap.SitemapGenerator.generate ( ) throws IOException

Definition at line 50 of file SitemapGenerator.java.

50  {
51  Collection<Sitemaps.SitemapLink> links = Sitemaps.getSitemapLinks();
52  writeHeader();
53  for(Sitemaps.SitemapLink link : links) {
54  writeEntry(link.getUrl(), link.getImages());
55  }
56  writeFooter();
57  writer.close();
58  }
Here is the call graph for this function:

◆ generateSitemap()

static void org.turro.elephant.sitemap.SitemapGenerator.generateSitemap ( )
static

Definition at line 42 of file SitemapGenerator.java.

42  {
43  try {
44  new SitemapGenerator().generate();
45  } catch (IOException ex) {
46  Logger.getLogger(SitemapGenerator.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
47  }
48  }
Here is the call graph for this function:
Here is the caller graph for this function:

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