Is there a way to retrieve the https port of the EE6/Servlet Container in a standard way? If not maybe a method to convert an URL in a standard way to use https?
I know I could use a security constraint in web.xml, but the behavior is not configurable at runtime as far as I know.
Maybe it is a bad idea to allow the user or admin to choose whether to use https or not?