0

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?

4

1 回答 1

0

我认为不可能使用标准 API。如果是 TomCat Server,我通过解析 server.xml 看到了一些变通方法。

于 2012-08-29T21:45:54.420 回答