This abstract class implements the Producer interface and provides
utitity methods to convert the generated streams into DOM tress
that are used inside the processor pipeline. This class must be
seen as a transparent "mediator" between stream and DOM realms.
public org.w3c.dom.Document getDocument(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
This method is the only one called by the Cocoon engine. Producers
are allowed to create streams and this class "mediates"
translating these streams into DOM trees. For producers willing
to generate DOM trees automatically, they should override this method
and may well ignore to implement the getStream() method since it's
never called directly by Cocoon.
public boolean hasChanged(java.lang.Object request)
This method always returns true to reduce the evaluation overhead to
a minimum. Producer are highly encouradged to overwrite this method
if they can provide a fast way to evaluate the response change.