Hi Ron, great questions. We do support such overrides, and our sample projects actually demonstrate it.
For instance, in java-jaxrs sample:
public class PetStoreResource extends JavaHelp
contains all the logic for the PetStore API. We then extend that class and assign it to different media types:
@Path("/store.json")
@Api(value="/store" , description = "Operations about store")
@Produces({"application/json"})
public class PetStoreResourceJSON extends PetStoreResource
and
@Path("/store.xml")
@Singleton
@Api(value="/store", description = "Operations about store")
@Produces({"application/xml"})
public class PetStoreResourceXML extends PetStoreResource
You just state that each subclass has a different media type and you're good. All of our APIs are written this way.
I'm not positive about the @QueryParam example you gave. I'll give that a test and post back.