Not sure if I understand the question correctly, but the following will create two endpoints in the 'Jersey root' as /uploads
and /downloads
. You will be able to specify other methods in the root; all of this in the same class.
@Path("/")
public class FileProcessController {
@Path("uploads")
public Response uploadFile(...) {
...
}
@Path("downloads")
public Response downloadFile(...) {
...
}
}