This is not a feature I came up with 1 week ago on a whim. Its a proven
feature that has been around for 5+ years in Resteasy and is wildly
popular. A number of other projects I'm involved with use it to publish
their REST interface as its something users have demanded.
I'd be happy to write it up, but I need to know soon as my schedule is
really busy in 2016. IMO, it would probably be the most popular feature
of 2.1 if it was added. Even non-Resteasy users would be familiar with
it as its already documented in both revisions of my JAX-RS RESTFul Java
O'Reilly books which have also been around for 5+ years. :)
Again, it would be something like this:
interface MyRestClient {
@GET
@Product("application/json")
@Path("{name}")
Customer get(@QueryParam("name") name);
}
Client client = ...;
MyRestClient proxy =
client.target("
http://example.com").proxy(MyRestClient.class);
Customer cust = proxy.get("Bill Burke");
On 2/28/2016 5:28 AM, markus_at_headcrashing.eu wrote:
> I personally do not see a big need for it, frankly spoken. But maybe
> the others do.
>
> Zitat von Bill Burke <bburke_at_redhat.com>:
>
>> Any interest in including the client proxy framework I was proposing
>> a few months ago?
>>
>> On 2/27/2016 11:59 AM, markus_at_headcrashing.eu wrote:
>>> Sergey,
>>>
>>> the question regarding whether there is room for discussion was
>>> aiming at the spec leads. Certainly I WANT to get the things you
>>> proposed!
>>>
>>> -Markus
>>>
>>>> Well you started a discussion despite whatever time frame you are
>>>> referring to a couple of weeks back.
>>>> Where are the spec leads anyway with keeping up uptodate with some
>>>> delivery dates, etc.
>>>>
>>>> Anyway, I've done my best to bring to the attention of the experts
>>>> some of interesting (IMHO) improvements and bug fixes requests,
>>>>
>>>> but I don't hold my breath and expecting any reaction
>>>> On 25/02/16 17:49, Markus Karg wrote:
>>>>> Is there room for discussion looking at the time frame?
>>>>>
>>>>>
>>>>> Sergey Beryozkin <sberyozkin_at_talend.com> hat geschrieben:
>>>>>
>>>>>
>>>>> Hi All,
>>>>> hope you are doing well,
>>>>>
>>>>> I've been inspired by Marek accepting one of Markus's proposals
>>>>> recently
>>>>> :-), so I thought I'd review the list of the JIRA issues
>>>>> I've created over the last couple of years or so which is what I
>>>>> did, I
>>>>> marked quite a few of them as won't fix and came up with the list
>>>>> at [1].
>>>>>
>>>>> I'm honestly not expecting all of them (or even some of them) be
>>>>> necessarily addressed for 2.1 bubt I think fixing some of them can
>>>>> improve the spec/API in some minor ways. Here are the JIRAs I
>>>>> think can
>>>>> be of interest to resolve for 2.1.
>>>>>
>>>>> The bugs (docs or spec):
>>>>>
>>>>> 1. https://java.net/jira/browse/JAX_RS_SPEC-464
>>>>> ResponseBuilder StatusType is lost
>>>>>
>>>>> 2. https://java.net/jira/browse/JAX_RS_SPEC-424
>>>>>
>>>>> Auto-closing InputStream issue - we actually had our tooling team
>>>>> pushing back after I implemented the auto-closing due to
>>>>> the tooling code reading lazily loaded DOM documents. It is probably
>>>>> more of the docs issues as opposed to the spec issue
>>>>>
>>>>> 3. https://java.net/jira/browse/JAX_RS_SPEC-483
>>>>> The docs issue which confused some of our users. Santiago
>>>>> commented he
>>>>> was seeing the point made.
>>>>>
>>>>> 4. https://java.net/jira/browse/JAX_RS_SPEC-396
>>>>>
>>>>> Minor MediaType.isCompatible issue
>>>>>
>>>>> Some improvements:
>>>>>
>>>>> 1. https://java.net/jira/browse/JAX_RS_SPEC-433
>>>>> 'Direction' of bean validation exceptions - i.e did it happen on the
>>>>> input or output
>>>>>
>>>>> 2. https://java.net/jira/browse/JAX_RS_SPEC-454
>>>>> https://java.net/jira/browse/JAX_RS_SPEC-370
>>>>>
>>>>> Get the properties visible to service classes and to MBR/MBW,
>>>>> something
>>>>> Markus was also asking about recently
>>>>>
>>>>> 3. https://java.net/jira/browse/JAX_RS_SPEC-370
>>>>> (with a link to a JIRA also created by the other user)
>>>>> @Produces for ExceptionMappers
>>>>>
>>>>> 4. https://java.net/jira/browse/JAX_RS_SPEC-437
>>>>>
>>>>> Mapping matrix parameters without values to Boolean when possible, it
>>>>> will align if with the related WADL text well
>>>>>
>>>>> 5. https://java.net/jira/browse/JAX_RS_SPEC-458
>>>>>
>>>>> The list of binding annotations improvement
>>>>>
>>>>> 6. https://java.net/jira/browse/JAX_RS_SPEC-491
>>>>> Optional 'doc' property to all of JAX-RS annotations
>>>>>
>>>>> The 'scene' of documenting JAX-RS services is in a bit of disorder
>>>>> right
>>>>> now. Some people use JavaDocs, some custom annotations such as
>>>>> Swagger, etc
>>>>> Simple fix - lots of consolidation at the tooling/code generation
>>>>> level
>>>>> may be possible due to it.
>>>>>
>>>>> 7. https://java.net/jira/browse/JAX_RS_SPEC-486
>>>>>
>>>>> StreamingOutput MBR
>>>>>
>>>>> [1]
>>>>> https://java.net/jira/browse/JAX_RS_SPEC-425?jql=project%20%3D%20JAX_RS_SPEC%20AND%20status%20%3D%20Open%20AND%20reporter%20in%20%28currentUser%28%29%29
>>>>> I honestly hope some discussion will follow - hate to see the list
>>>>> being
>>>>> not alive...
>>>>>
>>>>> Sergey
>>>>>
>>>
>>>
>>>
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com