Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Handler.Sequence in place of ContextHandlerCollection #2609

Merged

Conversation

hqv126
Copy link
Contributor

@hqv126 hqv126 commented Nov 18, 2024

Using the more generic org.eclipse.jetty.server.Handler in place of the more specific org.eclipse.jetty.server.handler.ContextHandler implementation. According to the Migration Guide, Handler.Sequence replaced HandlerCollection and HandlerList. ContextHandlerCollection is retained for its efficient child ContextHandler selection. Unless performance considerations or the need for a more restrictive implementation justify it, a more generic implementation reduces code complexity and provides greater functional possibilities for plugins.

…he more specific org.eclipse.jetty.server.handler.ContextHandler implementation. According to the [Migration Guide](https://jetty.org/docs/jetty/12/programming-guide/migration/11-to-12.html#api-changes-handler-sequence), Handler.Sequence replaced HandlerCollection and HandlerList. ContextHandlerCollection is retained for its efficient child ContextHandler selection. Unless performance considerations or the need for a more restrictive implementation justify it, a more generic implementation reduces code complexity and provides greater functional possibilities for plugins.
@hqv126 hqv126 changed the title Using the more generic org.eclipse.jetty.server.Handler in place of t… Use Handler.Sequence in place of ContextHandlerCollection Nov 18, 2024
@guusdk guusdk merged commit ad0c69b into igniterealtime:main Nov 19, 2024
5 checks passed
guusdk added a commit to guusdk/Openfire that referenced this pull request Nov 19, 2024
…he more specific org.eclipse.jetty.server.handler.ContextHandler implementation. According to the [Migration Guide](https://jetty.org/docs/jetty/12/programming-guide/migration/11-to-12.html#api-changes-handler-sequence), Handler.Sequence replaced HandlerCollection and HandlerList. ContextHandlerCollection is retained for its efficient child ContextHandler selection. Unless performance considerations or the need for a more restrictive implementation justify it, a more generic implementation reduces code complexity and provides greater functional possibilities for plugins. (igniterealtime#2609)

Co-authored-by: “Huy <[email protected]>
Co-authored-by: Guus der Kinderen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants