ybonnel/SimpleWeb4j — pull request #16 by dgouyette (2013-09-25 09:17:14+00:00)
Title: add text handler

To add a route using TextHanler :

get(new Route("/nextCommand", Void.class, MediaType.ANY_TEXT_TYPE) {
@Override
public Response handle(Void param, RouteParameters routeParams) {
String next = elevator.next();
LOGGER.info("nextCommand = {}", next);
return new Response(next);
}

});

default using JsonHandler for retrocompatiblilty