org.apache.cocoon.components.notification
Class Notifier

java.lang.Object
  |
  +--org.apache.cocoon.components.notification.Notifier
Direct Known Subclasses:
Notifier

public class Notifier
extends java.lang.Object

Generates a representations of the specified Notifying Object.

Version:
CVS $Id: Notifier.java,v 1.6 2002/02/22 07:00:10 cziegeler Exp $
Author:
Nicola Ken Barozzi Aisa, Stefano Mazzocchi

Constructor Summary
Notifier()
           
 
Method Summary
static void notify(Notifying n, org.xml.sax.ContentHandler ch)
          Generate notification information in XML format.
static java.lang.String notify(Notifying n, java.io.OutputStream outputStream)
          Generate notification information as a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notifier

public Notifier()
Method Detail

notify

public static java.lang.String notify(Notifying n,
                                      java.io.OutputStream outputStream)
                               throws java.io.IOException
Generate notification information as a response. The notification is directly written to the OutputStream.
Parameters:
n - The Notifying object
outputStream - The output stream the notification is written to This could be null.
Returns:
The content type for this notification (currently always text/html)

notify

public static void notify(Notifying n,
                          org.xml.sax.ContentHandler ch)
                   throws org.xml.sax.SAXException
Generate notification information in XML format.


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