Skip to content

Instantly share code, notes, and snippets.

@jfarcand
Created January 17, 2011 18:35
Show Gist options
  • Save jfarcand/783224 to your computer and use it in GitHub Desktop.
Save jfarcand/783224 to your computer and use it in GitHub Desktop.
@Path("/services/{handler}")
public class ServerHandler {
@POST
public Response service(@Context Request request, @ServiceHandler(POST, "createPerson(entity)") ServiceHandler serviceHandler){
return serviceHandler.delegate(request);
}
}
Note that we can potentially intercept the call and invoke the ServiceHandler. I'm not sure Jersey allow an application without a resource (probably not).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment