org.apache.cocoon.components.notification
Class Notifier

java.lang.Object
  extended byorg.apache.cocoon.components.notification.Notifier

public class Notifier
extends Object

Generates a representations of the specified Notifying Object.

Version:
$Id: Notifier.java 164815 2005-04-26 16:43:13Z vgritsenko $
Author:
Nicola Ken Barozzi, Stefano Mazzocchi

Constructor Summary
Notifier()
           
 
Method Summary
static void notify(Notifying n, ContentHandler ch, String mimetype)
          Generate notification information in XML format.
static void notify(Notifying n, OutputStream outputStream, String mimetype)
          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 void notify(Notifying n,
                          OutputStream outputStream,
                          String mimetype)
                   throws 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.
Throws:
IOException

notify

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

Throws:
SAXException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.