users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Header builder class hierarchy simplification

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 07 Dec 2011 10:39:08 +0100

Yes.

Marek

On 12/06/2011 03:21 PM, Bill Burke wrote:
> Is this in GIT?
>
> On 12/5/11 5:29 AM, Marek Potociar wrote:
>> Hi *,
>> as discussed some time ago, the extended hierarchy of header and header builder interfaces was temporary until things
>> settle down more with req/resp related components. I think the method structure is currently stable enough so it's time
>> to flatten the interfaces as promised earlier. I have made the necessary changes in the API source code.
>>
>> Following is the outline of the change:
>>
>> - Headers, Headers.Builder, RequestHeaders.Builder, ResponseHeaders.Builder interfaces were removed;
>> - Headers merged into RequestHeaders and ResponseHeaders
>> - Headers.Builder and RequestHeaders.Builder into Request.RequestBuilder
>> - Headers.Builder and ResponseHeaders.Builder into Response.ResponseBuilder
>>
>> - As part of this, I am also proposing converting inheritance relationship between Request& RequestHeaders /
>> Response& ResponseHeaders into composition - by introducing a new getHeaders() method on Request/Response and their
>> builders.
>>
>> - In total, we are 4 interfaces down as a result of the API simplification.
>>
>> Please review the proposed API change. Looking forward to your feedback.
>>
>> Marek
>