users@jersey.java.net

[Jersey] Re: URI for a resource

From: Adam Walczak <me_at_adamwalczak.info>
Date: Wed, 29 Dec 2010 20:09:09 +0100

I think you will have to do something like this:

@Path("/")
public class Res {

@Path("foo")
public void foo() {
}

@Path("foo.bar")
public void fooBar() {
}

@Path("foo.alpha")
public void fooAlpha() {
}

}

or:

@Path("/")
public class Res {

@Path("foo")
public void foo() {
}

@Path("foo.{suffix}")
public void fooWithSuffix(String suffix) {
}

}

-- 
Adam Walczak
www.adamwalczak.info
+48 604 188 992