Skip to content

Provide more extensible constructors on UndertowServletWebServer and UndertowWebServer #21391

Closed
@wilkinsona

Description

@wilkinsona

The constructors on UndertowServletWebServer are heavily overloaded and rather unwieldy. The addition of graceful shutdown support has added to the problem as it's introduced another argument on the constructor. Many of the arguments are passed in so that they can be used to create HttpHandler instances that wrap those from the DeplomentManager. It would be better if this logic was in the factory that creates the server rather than the server itself.

We have a similar, albeit smaller, problem with UndertowWebServer. It would be nice to get rid of the Closeable constructor argument.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions