ProxyFactory doesn't generate correct URLs for subresource locators in JBoss EAP 6.x

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content