Closed
Description
TomcatEmbeddedServletContainerFactory creates a single Connector which can be altered using a TomcatConnectorCustomizer, however there is no mechanism to add additional Connectors (ie for SSL or AJP in addition to HTTP).
The addConnectorCustomizers method allows you to add a list of customisers for the connector that gets created by getEmbeddedServletEngine, however if you provide a list it looks like they just overwrite the existing connector config so the last customizer in the list wins. This is a bit confusing, especially if you are just looking at the API as you think you can add more connectors but you cant :(
I propose a fix that
- deprecates the addConnectorCustomizers(TomcatConnectorCustomizer... ) method
- creates a new addConnectorCustomizer(TomcatConnectorCustomizer ) method
- add a new addAdditionalConnectors(Connectors... ) method which appends to a list of connectors that get added in addition to the default connector.
Thanks
Brock