org.apache.cocoon.components.notification
Class Notifier

java.lang.Object
  extended by org.apache.cocoon.components.notification.Notifier

public class Notifier
extends Object

Generates a representations of the specified Notifying Object.

Version:
$Id: Notifier.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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-2010 The Apache Software Foundation. All Rights Reserved.