users@grizzly.java.net

Virtual Hosts in HttpServer

From: Alexander Pokahr <pokahr_at_informatik.uni-hamburg.de>
Date: Thu, 27 Mar 2014 17:28:51 +0100

Hi all,

I can see that the Mapper supports virtual hosts:
https://grizzly.java.net/docs/2.3/xref/org/glassfish/grizzly/http/server/util/Mapper.html

But when adding HttpHandlers to an HttpServer through its
ServerConfiguration,
the HttpHandlerChain ignores the host part of the mapping and always
uses "localhost":
https://grizzly.java.net/docs/2.3/xref/org/glassfish/grizzly/http/server/HttpHandlerChain.html#260

I wonder, if it is possible to add handlers in a way that they are
associated
to a virtual host name. Any hints in the right direction would be much
appreciated.

Kind regards and thanks in advance,
Alex