cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward S" <sumi...@gmail.com>
Subject Set/Read Response Code?
Date Mon, 28 Jan 2008 15:28:48 GMT
Hey guys,

Had a question.

I have a reader that reads in a XML containing 'x' URL's. Each URL returns a
PDF and this reader merges the PDF and gives a single PDF as the output.
Now, if something fails, i get a 0 page pdf with an error saying 'Cannot
open the pdf because it has 0 pages'

I have no way to find out, what failed in between (except for checking the
logs)

I want to modify it in such a way, that the reader can tell me which url's
failed.
So, I thot of nesting the sitemaps and writing a transformer that can go
thru each URL first and tell me if it returns a valid pdf or not. However,
for this to work...I need to set the response code in another component to
failure and read that response code here.

Any idea how I can do that?

thanks

Ed.

Mime
View raw message