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.