You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

REST POJOs are a Java 5 way of writing POJOs that implement RESTful services. They are an extension of AnDI to add some RESTful annotations.

The core features are

  • dependency inject HttpServletRequest and HttpServletResponse if required (which should be rare)
  • dependency inject URI values or HTTP parameters or session based properties
  • map methods to HTTP operations (GET, PUT, POST, DELETE)
  • map parameters and return values to contents of HTTP requests which use a marshalling layer to serialize as
    • JAXB 2
    • SDO
    • XStream
    • use an explicit API such as W3C DOM, dom4j etc.

Example

 
  • No labels