Details
-
Feature Request
-
Resolution: Obsolete
-
Major
-
None
-
2.3-beta-1
-
None
Description
Currently when resteasy client generation hits a method that does not specify @Produces and/or @Consumes, the user cannot specify a media type for the client to use. Because the options of available media-types are only understood at configuration / deployment time (depending on what extensions to server-side jax/rs environment are used), it seems that the end user (proxy generator) shoudl be able to specify a media type to fall back on if methods don't specify specifically.
Proposal is to extend ProxyBuilder with the following three methods:
/** shortcut for serverProduces(type).serverConsumes(type) */ public ProxyBuilder<T> serverMediaType(MediaType type) public ProxyBuilder<T> serverProduces(MediaType type) public ProxyBuilder<T> serverConsumes(MediaType type)