org.apache.cocoon.sitemap
Class SitemapBuilder

java.lang.Object
  extended by org.apache.cocoon.sitemap.SitemapBuilder

public class SitemapBuilder
extends Object


Constructor Summary
SitemapBuilder()
           
 
Method Summary
 SitemapNode build(URL sitemap)
           
protected  SitemapNode createSitemapNode(String localName, Map<String,String> parameters)
           
protected  void enableValidation(URL sitemap, SAXParserFactory saxParserFactory)
          Enable sitemap validation against the XSD schema.
 void setSitemapNodeFactory(SitemapNodeFactory sitemapNodeFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitemapBuilder

public SitemapBuilder()
Method Detail

build

public SitemapNode build(URL sitemap)

enableValidation

protected void enableValidation(URL sitemap,
                                SAXParserFactory saxParserFactory)
Enable sitemap validation against the XSD schema. Use InMemoryLRUResourceCache to validate once until sitemap file changes.

Parameters:
sitemap - An URL with sitemap location.
saxParserFactory - SAXParserFactory to configure the schema.

setSitemapNodeFactory

public void setSitemapNodeFactory(SitemapNodeFactory sitemapNodeFactory)

createSitemapNode

protected SitemapNode createSitemapNode(String localName,
                                        Map<String,String> parameters)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.