cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "warrell harries" <warrell.harr...@googlemail.com>
Subject Re: Custom DOM transformer
Date Fri, 16 Nov 2007 11:51:13 GMT
Hi Jean-Claude,

What generator are you using in your pipeline match? Can you show us the
sitemap? You would need to use the Request generator or another one that
'loads' the pipeline with the contents of the HTTP Request.

Cheers

On 16/11/2007, Jean-Claude Vogel <vogel.jeanclaude@gmail.com> wrote:
>
> Hello guys,
>
> I would like to write my own dom transformer. So I simply wrote the
> following in order to get firstly an identity transformer :
>
> public class TestTransformer extends AbstractDOMTransformer {
>         private Request request;
>
>         public void setup(SourceResolver resolver, Map objectModel,
>                           String src, Parameters par)
>                           throws ProcessingException, SAXException,
> IOException {
>             super.setup(resolver, objectModel, src, par);
>         }
>
>         public Document transform(Document document) {
>             //  When I log here I see that "document" contains what I want
> it to contain
>             return document;
>         }
> }
>
>
> To test I send an HTTP post request with an XML in its body, but I my HTTP
> request response body is desesperatly NULL.
>
> I tried to log what happens in the transform method and I can see in my
> XML body sent by HTTP. The post response is ever empty.
>
> What's wrong in my code please ?
>

Mime
View raw message