dev@jsr311.java.net

Re: JSR311: Response isn't adequate

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 04 Mar 2008 16:10:11 -0500

On Mar 4, 2008, at 1:26 PM, Bill Burke wrote:
>
> Marc Hadley wrote:
>> How does the following sound:
>> public interface StreamingOutput {
>> OutputStream getOutputStream(int status, MultivaluedMap<String,
>> Object> metadata);
>> }
>
> I'm wondering if MessageBodyWriters should follow the same sort of
> contract as they have the same "commit" ordering problem, don't they?
>
You mean split the writeTo into two methods, e.g. writeMetadata +
writeBody ?

I don't know if that is really necessary, I tried to capture the need
to update headers first in the existing javadoc, IMO that should be
sufficient.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.