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

4.1.5: Update to static content #9558

Closed

Conversation

barchetta
Copy link
Member

Backport #9502 to Helidon 4.1.5

Resolves #9471

Description

This PR introduces static content Server feature. This allows us to configure static content in config, with multiple handlers supported (both for path and classpath based static content).

The new configuration is using Helidon builders, and I have added the Config metadata plugin to have the reference available.

Old approach is deprecated and marked for removal, usages are changed to new approach, including MP.

Documentation

Documentation updated both for SE and MP

* Static content update
- WebServer feature to support static content from configuration
- new Builder API based prototypes to configure it
- deprecated old approach

* Use defaults for sockets and welcome file.
Added singular methods for classpath and path handlers.
Renamed welcome file to welcome to align with current MP configuration option.

* CDI extension update to use new API with same defaults,
update to deprecated usages to avoid compiler warnings.

* Documentation update for MP and SE.

* Fix classpath root cleanup.
Fix configuration used in MP extension.

* Introduction of io.helidon.common.Size to handle size strings (similar to Java's Duration, but for size in bytes).
Update to builder to support nice defaults for size.
Update to PR to fix comments, and use Size for memory cache capacity.
@barchetta barchetta added webserver 4.x Version 4.x labels Dec 4, 2024
@barchetta barchetta added this to the 4.1.5 milestone Dec 4, 2024
@barchetta barchetta self-assigned this Dec 4, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 4, 2024
@barchetta barchetta mentioned this pull request Dec 4, 2024
17 tasks
@barchetta barchetta added the backport Issues that are merged into a single branch, but missing in either master or previous release label Dec 4, 2024
@barchetta
Copy link
Member Author

After further review we will not be backporting this enhancement to a patch release. Closing.

@barchetta barchetta closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x backport Issues that are merged into a single branch, but missing in either master or previous release OCA Verified All contributors have signed the Oracle Contributor Agreement. webserver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants