public class RobotsSitemapGenerator extends AbstractRobotsGenerator
Modifier and Type | Field and Description |
---|---|
private static String |
LOC_TAG |
private static String |
SITEMAPS_ORG_NAMESPACE |
private static String |
URL_SET_TAG |
private static String |
URL_TAG |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
RobotsSitemapGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxUrl(Page page,
String siteUrl)
Serialize information about a page in sitemap.xml
|
void |
generate() |
getSite, service
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private static final String LOC_TAG
private static final String URL_TAG
private static final String SITEMAPS_ORG_NAMESPACE
private static final String URL_SET_TAG
public RobotsSitemapGenerator()
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxUrl(Page page, String siteUrl) throws SAXException
page
- The page to serializesiteUrl
- the site public URL (ending with a '/').SAXException
- if an error occurs while saxing