jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: [servlet-spec users] Re: updated draft of Upgrade proposal

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 06 Dec 2011 11:15:57 -0800

On 12/6/11 10:57 AM, Santiago Pericas-Geertsen wrote:
> On Dec 5, 2011, at 11:39 AM, Alex Rojkov wrote:
>
>>> Hi,
>>>
>>> I have upgraded the doc for upgrade proposal
>>> http://java.net/projects/servlet-spec/pages/UpgradeAPI
>> In terms of using streams, I think its consistent with Servlet API's streams and readers.
>>
>> For ProtocolHandler you might add onInputTimeout() and onInputClose() events.
> +1 At least inputClose() seems to be needed for the case when the client closes connection.
+1
>
> Can a handler cache the WebConnection instance? E.g., if a server wants to close the connection, can it call shutdownInput() and shutdownOutput() on its cached connection, or does it have to wait for the next event? If WebConnection is cacheable, it seems clearer to only pass it to init(WebConnection).
It is cacheable. It is passed to other API for convenience.

Shing Wai Chan
>
> -- Santiago
>