jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: [1130-UserAgentNeedsUpdate] DISCUSSION

From: Neil Griffin <neil.griffin_at_portletfaces.org>
Date: Tue, 7 Aug 2012 15:19:08 -0400

Portlet containers may return header names with PortletRequest#getPropertyNames() [1] and values with PortletRequest#getProperty(String) [2] but are not required to do so. Case in point: Liferay Portal does not return the "If-Modified-Since" header.

So I think this can only be officially tightened up in the servlet case.

[1] http://portals.apache.org/pluto/portlet-2.0-apidocs/javax/portlet/PortletRequest.html#getPropertyNames()
[2] http://portals.apache.org/pluto/portlet-2.0-apidocs/javax/portlet/PortletRequest.html#getProperty(java.lang.String)

On Aug 7, 2012, at 10:43 AM, Edward Burns wrote:

> Hello Experts,
>
> Resource.userAgentNeedsUpdate() is intentionally vague, to allow for
> greater freedom of implementation. I've had recent reason to desire a
> tighter specification, at least requiring the If-Modified-Since header
> to be consulted.
>
> Does anyone else think we need to tighten up the spec for this method?
>
> Ed
>
> --
> | edward.burns_at_oracle.com | office: +1 407 458 0017
> | homepage: | http://ridingthecrest.com/