Alter incoming URLs for HTTP/HTTPS to force the “www” subdomain in Tomcat 9

I want every URL coming into my Tomcat web server to carry the www subdomain prefix. How can I have Tomcat alter an incoming URL such as this: http://Example.com/whatever …to include the www subdomain prefix: http://www.Example.com/whatever The goal is that my Java Servlets receive URLs that always carry the www prefix. I have been told…