Change/Override the xml processor of RestExpress



Im out of luck this week, I would want to override/change the xml processor to handle my own xml format, my format would be the same as freeswitch adding new user using mod_xml_cur,


My problem is RestExpress automatically outputs xml with the object assigned to it like for example:


a String object will output similar to this :



<java.lang.String> ... </java.lang.String>


what i would want is to have my own xml encoded response like for example / for every response :



<document>...</document>


I have a little knowledge about netty and RestExpress made it somehow clear for me for some hard stuff.


anyway, Is there a way I could do this in RestExpress? or netty is the only way to go?


much appreciated, David


No comments:

Post a Comment