jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [73-getMapping] PROPOSAL

From: Edward Burns <edward.burns_at_oracle.com>
Date: Wed, 8 Feb 2017 15:00:57 -0800

EB> I addressed the Filter and Listener issue as follows:

EB> HttpServletRequest.getMapping():

EB> If called from a Servlet, return the Mapping by which this
EB> HttpServletRequest was invoked, otherwise return a Mapping equivalent
EB> to the one specified for the default implementation. Each invocation
EB> of this method must return a fresh instance of Mapping. The
EB> implementation must retain no reference to the returned
EB> Mapping. Servlet 4.0 compliant implementations must override this
EB> method.

>>>>> On Wed, 8 Feb 2017 22:40:02 +0000, Mark Thomas <markt_at_apache.org> said:

MT> Changing the behaviour based on which code is making the call will break
MT> the intended use cases.

MT> Every request is mapped to a servlet. getMapping() should return the
MT> current servlet mapping regardless of where the call originates from.

I can certainly do it that way. Do we need to make it more clear by
changing the name of the method to be getServletMapping()?

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| 19 business days until planned start of JSF 2.3 Final Approval Ballot
|  9 business days until DevNexus 2017
| 34 business days until JavaLand 2017