[undertow-dev] Different Handler Chains for Listeners

Stuart Douglas sdouglas at redhat.com
Wed Mar 18 20:30:04 EDT 2015


I have added a new version of the add listener methods that allow you to specify a different handler per method. 

Stuart

----- Original Message -----
> From: "Bernd Eckenfels" <ecki at zusammenkunft.net>
> To: undertow-dev at lists.jboss.org
> Sent: Thursday, 19 March, 2015 9:56:25 AM
> Subject: [undertow-dev] Different Handler Chains for Listeners
> 
> Hello,
> 
> I see in the Undertow$Builder, that each listener which is added gets
> the rootHandler set. The Builder API does not allow me to set different
> handlers for different ports.
> 
> Is that an expected and intended use case? Replicating all the setup
> code from Undertow.start() might allow me to use that, but it is not an
> exported API it seems.
> 
> Specifically I want to have a service and a management interface in a
> micro service. I could to that with two server instances, just not sure
> if this is better? I havent seen a handler which can dispatch based on
> the listener, is there any (maybe based on
> ServerConnection#getLocalAddress()?)?
> 
> Greetings
> Bernd
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
> 


More information about the undertow-dev mailing list