September 15, 2008
Scala, Maven and Jersey
As a small side note, I’ve got
import javax.ws.rs.{Path, GET, ProduceMime}
@Path("/hello")
class HelloResource {
@GET
@ProduceMime(Array("text/html"))
def hello() = "Hello World"
}
working with Maven2, Jetty and Jersey. Took some time but was interesting. Any ideas for Array("text/html") (Scala does’t support varags the same as Java does) Perhaps a clever implicit? Need to think more.