0.13.3 10-Apr-2014

RESTful XML Page Modeler

With this module you can build REST XML responses much faster (provided you defined MyPage class already):

@Path("/")
public class MainRs {
  @GET
  @Produces(MediaTypes.APPLICATION_XML)
  public MyPage front() {
    return new PageBuilder()
      .stylesheet("/xsl/front.xsl")
      .build(MyPage.class)
      .add(new JaxbBundle("score", 123));
  }
}

The response will look like:

<?xml version="1.0" ?>
<?xml-stylesheet type='text/xsl' href='/xsl/front.xsl'?>
<page>
  <score>123</score>
</page>

Isn’t it neat? :) Start reading from PageBuilder.

Since version 0.4.8 you can use “insets”, which implement basic functionalities required by most web applications, including flash messages, default HATEOAS links, version data, and OAuth authentication.

Include this dependency into your project (or download rexsl-page-0.13.3.jar and add to classpath):

<dependency>
  <groupId>com.rexsl</groupId>
  <artifactId>rexsl-page</artifactId>
  <version>0.13.3</version>
</dependency>

This module also contains a few mockers. To use it you should include this dependencies into your project (or download rexsl-page-0.13.3-mock.jar and add to classpath):

<dependency>
  <groupId>com.rexsl</groupId>
  <artifactId>rexsl-page</artifactId>
  <version>0.13.3</version>
  <classifier>mock</classifier>
  <scope>test</scope>
</dependency>
<dependency>
  <groupId>javax.servlet</groupId>
  <artifactId>servlet-api</artifactId>
  <version>2.4</version>
  <scope>provided</scope>
</dependency>
built by maven