Ralf Siegel wrote:
At 22:45 08.10.2003 +0200, you wrote:
Actually, a quick check indicates that the security methods in the
UserAgent
classes do get called for everything (at least that I could think
of). So all
you would need to do is subclass the UserAgent class to track all the
files
it gets script/external Resources requests for. It would in fact be
quite
simple.
Aha, now that sounds quite promising - I will check this out tomorrow :o)
Hi Thomas, it was simple indeed. I subclassed
SVGAbstractTranscoderUserAgent and update the 'overall last modified
date' value of an SVG document within the 'checkLoadExternalResource'
handler. Works like a charm.
There is just a tiny little problem: I need that date *before* the
actual rendering process starts (to check against the cached transcoder
output in order to skip the rendering), not afterwards ....
This is why I said that what you wanted was the dependency list for
a rendering. Then you can check if any of the dependencies are newer
than the cached rendering (done outside of Batik) if so you need to rerender
(using Batik) - in the processes generating an updated dependency list.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]