package com.blogspot.diegopacheco.groovy.rest.server import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; /** * * POJO Groovy que utiliza as anotaçoes do Jersey. * * @autor Diego Pacheco * @since 05/01/2009 * @version 1.0 * **/ @Path("groovy-pojo") class GroovyPojo { @GET @Produces(["text/html"]) def show() { "groovy WS-REST Rocks!" } @GET @Produces(["text/html"]) @Path("/diego") def showPath() { "http://diego-pacheco.blogspot.com" } }