REST on GAE, what implementation to use?(RESTlet, jersey, other…)

前端 未结 1 2036
失恋的感觉
失恋的感觉 2021-02-06 02:44

Have somebody experience with using REST on GAE? Maybe you can advise some lightweight REST implementation for this. I found that RESTlet said that they have GAE optimised imple

1条回答
  •  情歌与酒
    2021-02-06 03:10

    I am currently using GAE plus Restlet 2.0M6 for a Goolge Apps Domain specific business project and find it very useful. Integration with google Accounts and Data Api is easily done for obvious reasons. However I could not get the XStream lib that is bundled with Restlet to work properly, so I use the very intuitive Simple framework instead for object serialization. Another disadvantage of Restlet is its lack of JSP integration, which is unfortunate if you do not want to use more heavy-weight templating approaches. So far I have used XSLTransformations to render browsable html representations, but am not fully satisfied with it yet and always looking for suggestions.

    Update

    I am now using Saxon to transform xml on the server. This is a good tutorial on how to use it with App Engine. It is in Jython but not too hard to convert.

    Update2

    When the xslt approach is too heavy, I take a different approach with the helper package from the Lift framework to enable enriched xhtml templating/binding. This method is based on Scala however.

    0 讨论(0)
提交回复
热议问题