Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path.to() does not work with PathParams #3

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments
Open

Path.to() does not work with PathParams #3

GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. a Resource class with annotated method @Path("/users/{userid}
        public View getUser(@PathParam("userid") String userId)
2. try to generate Path: Path.to(MyResource.class, "getUser") 

What is the expected output? 
the path.
What do you see instead?
stack trace!


Please provide any additional information below.

Path.to() should accept additional parameters (vararg or how this thing is 
called) containing the path parameters, which would then be passed on to 
build():

 path = uriinfo.getBaseUriBuilder().path(clazz).path(clazz, method).build(...).toURL().getPath();

Original issue reported on code.google.com by [email protected] on 1 Mar 2012 at 3:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant