org.apache.cocoon.sitemap
Class ErrorNotifier

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.xml.AbstractXMLProducer
              |
              +--org.apache.cocoon.generation.AbstractGenerator
                    |
                    +--org.apache.cocoon.generation.ComposerGenerator
                          |
                          +--org.apache.cocoon.sitemap.ErrorNotifier
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, Generator, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, SitemapModelComponent, XMLProducer

public class ErrorNotifier
extends ComposerGenerator
implements org.apache.avalon.excalibur.pool.Recyclable

Generates an XML representation of the current notification.

Version:
CVS $Revision: 1.2.2.4 $ $Date: 2001/10/11 08:56:15 $
Author:
Nicola Ken Barozzi Aisa, Stefano Mazzocchi

Fields inherited from class org.apache.cocoon.generation.ComposerGenerator
manager
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
ErrorNotifier()
           
 
Method Summary
 void generate()
          Generate the notification information in XML format.
 void recycle()
          Recycle
 void setException(java.lang.Throwable throwable)
          Set the Exception to report.
 void setNotification(java.lang.Object o)
          Set the Notification to report.
 
Methods inherited from class org.apache.cocoon.generation.ComposerGenerator
compose
 
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, 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
 

Constructor Detail

ErrorNotifier

public ErrorNotifier()
Method Detail

setException

public void setException(java.lang.Throwable throwable)
Set the Exception to report.
Parameters:
exception - The Exception to report

setNotification

public void setNotification(java.lang.Object o)
Set the Notification to report.
Parameters:
exception - The Exception to report

generate

public void generate()
              throws org.xml.sax.SAXException
Generate the notification information in XML format.
Throws:
org.xml.sax.SAXException - Description of problem there is creating the output SAX events.
org.xml.sax.SAXException - when there is a problem creating the output SAX events.

recycle

public void recycle()
Recycle
Specified by:
recycle in interface org.apache.avalon.excalibur.pool.Recyclable
Overrides:
recycle in class AbstractGenerator


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.