users@servlet-spec.java.net

[servlet-spec users] [jsr340-experts] Re: New API ServletContext#addVirtualHostName

From: Mark Thomas <markt_at_apache.org>
Date: Mon, 25 Feb 2013 17:57:58 -0800

On 25/02/2013 17:24, Shing Wai Chan wrote:
> There is a typo in the first line.
> I mean "virtual host" rather than "logical host" there.
> Shing Wai Chan

+1.

A useful addition.

Mark


>
> On 2/25/13 5:03 PM, Shing Wai Chan wrote:
>> 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
>