How can I get the service from a HttpServletRequest
in Tomcat 8?
In tomcat 7 mapper is in the Connector
so I was able to access the Mapper as
((Request) request).getConnector().getMapper() //request is a HttpServletRequest
But how can I obtain this in Tomcat 8? In the tomcat 8 migration documentation it is said that
The Mapper has moved from the Connector to the Service since the Mapper is identical for all Connectors of a given Service.