version : Restlet 1.1

Hi,

I am pretty new to Restlet, and, although I have been through the tutorial 
examples and searched this forum, I can't find an answer to my question, so 
perhaps one of you can help me.

I am retrieving XML instances from an eXist database and before I hand them to 
the caller I want to transform the representation.

I thought that I would need to use the Transformer (filter), but I can't quite 
figure out how to hook it up or what methods I should call, or how to pass it 
the XML source and stylesheet (I'm a relative Java novice too :-).

To-date I have a working implementation which attaches a class which extends 
Resource for a couple of URL prototypes :-

router.attach("/quotestore/rfq/{quoteref}", RFQResource.class);
router.attach("/quotestore/rfq", RFQResource.class);

and in RFQResource I implement handleGet/handlePost/... etc. This all works 
fine.

So, can anyone provide me with a simple example of how to introduce my 
transformation into this implementation.

Many Thanks

Fraser.



Reply via email to