getDocument(javax.servlet.http.HttpServletRequest request)
This method is the only one called by the Cocoon engine.
java.lang.String
getPath(javax.servlet.http.HttpServletRequest request)
Returns the path where the resource is found, or an empty string if
no path can be applied to the resource.
java.lang.String
getStatus()
Returns information about the status of the implementing class.
java.io.Reader
getStream(javax.servlet.http.HttpServletRequest request)
This method is responsible to provide an input stream to read
the data generated or contained by the resource mapped by
this document producer.
boolean
hasChanged(java.lang.Object context)
This method always returns true to reduce the evaluation overhead to
a minimum.
boolean
isCacheable(javax.servlet.http.HttpServletRequest request)
Returns whether this request is suitable for cacheing.
Methods inherited from class org.apache.cocoon.producer.AbstractProducer
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.
This method is responsible to provide an input stream to read
the data generated or contained by the resource mapped by
this document producer. This stream is not guaranteed to be
buffered.
getPath
public java.lang.String getPath(javax.servlet.http.HttpServletRequest 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.
Returns information about the status of the implementing class.
Note: this is use instead of the usual toString()
method because some of these methods are declared final in some
classes in JDK 1.1.