Servlet API and available ports of the application server
Servlets are something we heavily used in Application server environment. And it provide accessing most of the information we need about the application sever and the context. However it does not provide a way to get the type of ports that is being exposed. For example a servlet may be exposed in HTTP (8080) and HTTPS (8443), then it would be able to get those port information from the servlet API. All those informations are available at the application server, so why not servlet API expose those information.