On Wed, 14 May 2014, Sergey Beryozkin wrote:
UnpackerResource has no Path annotation so it is defaulted to "/".

Every endpoint method within the class does have one though. I would've expected it to match based on those, is that not the case?

However, the selection between multiple root resources with the same top-level Path is more expensive so ideally we could introduce a dedicated @Path to UnpackerResource.

As we add more endpoints, that would seem to make sense to me. I'm not sure how widely used the unpacker resource is, so I don't know how much disruption it would be if we added a /unpacker/ prefix to the path?

The other option is to consider implementing a Welcome functionality in a JAX-RS 2.0 ContainerRequestFilter (supported in CXF 2.7.x), build a welcome info there and abort/block a request

Is that the more "normal" way to handle it in JAX-RS, or is what we've got so far a generally know practice?

Nick

Reply via email to