ProxyFactory doesn't generate correct URLs for subresource locators in JBoss EAP 6.x
Issue
Subresource locators works on server side, however it doesn't work as expected when generating the client proxies with ProxyFactory. The following code can be used to reproduce the issue:
Interface:
@Path("resource")
interface Resource{
@Path("sub")
public SubResource go();
}
interface SubResource {
@GET
public String goSub();
}
Calling the sub resource locator:
Resource resource = crf.createProxy(Resource.class);
resource.go().goSub();
Will generate a GET on /sub, when it should generate a get on /resource/sub.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
