We plan to add the following API in ServletContext.
This can be used by other modules, like JASPIC, for the purpose of
configuration or registration.
/**
* Returns the name of the logical host on the server.
*
* Servlet containers may use virtual hosting to support multiple
virtual hosts
* sharing one IP address on a server.
*
* This method must return the same value for all the servlet contexts
of a virtual host,
* and the value returned by this method must be distinct per virtual host.
*
* @return a <code>String</code> containing at the name of the virtual host
* on which the servlet context is deployed.
*/
public String getVirtualHostName();
Please let me know if you have any concern.
Thanks.
Shing Wai Chan