Package org.ametys.web.robots
Class RobotsGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class RobotsGenerator extends AbstractRobotsGenerator
Generates robots.txt file
-
-
Field Summary
Fields Modifier and Type Field Description private static String
DISALLOW_LABEL
private static String
NEW_LINE
private static String
SITEMAP_LABEL
private static String
SPACE_CHAR
private static String
TEXT_TAG
private static String
USER_AGENT_LABEL
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description RobotsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_serializePageInformation(Page page, StringBuilder builder)
private void
_serializeSitemapProperty(Site site, StringBuilder builder)
void
generate()
-
Methods inherited from class org.ametys.web.robots.AbstractRobotsGenerator
getSite, hasRestrictedAccess, service
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
DISALLOW_LABEL
private static final String DISALLOW_LABEL
- See Also:
- Constant Field Values
-
SITEMAP_LABEL
private static final String SITEMAP_LABEL
- See Also:
- Constant Field Values
-
SPACE_CHAR
private static final String SPACE_CHAR
- See Also:
- Constant Field Values
-
TEXT_TAG
private static final String TEXT_TAG
- See Also:
- Constant Field Values
-
USER_AGENT_LABEL
private static final String USER_AGENT_LABEL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RobotsGenerator
public RobotsGenerator()
-
-
Method Detail
-
_serializePageInformation
private void _serializePageInformation(Page page, StringBuilder builder)
-
_serializeSitemapProperty
private void _serializeSitemapProperty(Site site, StringBuilder builder)
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
-