On 09/09/2015 22:45, Edward Burns wrote:
>>>>>> On Wed, 9 Sep 2015 13:53:23 +0200, Bauke Scholtz <balusc_at_gmail.com> said:
>
> B> Just wanted to say +1 to this proposal. Having a
> B> HttpServletRequest#getMapping() is really useful.
>
> Hello Volunteers,
>
> What do you all think of adding
>
> public String getMapping()
>
> to HttpServletRequest?
>
> This would return the mapping used to invoke the current Servlet or
> Filter.
>
> Now, you might say that we should try to define some type safe concept
> for the return from this method. Perhaps. If folks see the value in
> that, we can consider it, but for my money a simple String would be a
> big improvement.
Exactly what would this method do?
What are the use cases?
Why do we need this for Servlets? What about getServletPath()?
Mark