users@jersey.java.net

[Jersey] Are child Resources inside the ResourceModel supposed to have 0 ResourceMethods?

From: Stefan Bodewig <stefan.bodewig_at_freenet.de>
Date: Mon, 06 Oct 2014 10:16:21 +0200

Hi

while trying to iterate all resource methods using the ResourceModel
I've found the Resources returned by Resource#getChildResources will
always claim to have no ResourceMethods at all - the same is true when
taking a visitor approach. This happens no matter how many methods with
@Path annotations are present in the child resource's class.

Is this the expected behavior and if yes, what is the proper way to
iterate over all ResourceMethods?

Stefan