Skip to content

WIP convert CommunityRestConf to JaxRsEndpoint #2013

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Tobianas
Copy link
Contributor

This change also required us to convert LightyServerBuilder to use JettyWebServer since it is used in CommunityRestConf to initialize JaxRsEndpoint.

@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch 2 times, most recently from aa22659 to 9e1ebc7 Compare October 23, 2024 13:01
@Tobianas
Copy link
Contributor Author

26.3. - Rebased and fixing openapi

@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch 3 times, most recently from bdd0619 to d0f4272 Compare April 2, 2025 12:03
@Tobianas
Copy link
Contributor Author

Tobianas commented Apr 2, 2025

OpenApi fixed, now fixing Http2 and Https

@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch from d0f4272 to 69ef4de Compare April 9, 2025 08:20
@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch from 69ef4de to 1d05889 Compare April 16, 2025 08:40
@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch from 1d05889 to 424ed33 Compare April 29, 2025 12:41
This conversion is required in order to use JaxRsEndpoint and
JaxRsOpenApi since they do not use regular server but JettyWebServer.

This patch basically replaces LightyServerBuilder with JettyServerProvider
which makes JettyServer acessible everywhere in Lighty.io where it may be
needed.

This code contains TODO to convert HTTP2 and HTTPS to JettyWebServer
which should be done in separate task due to scale of LIGHTY-329.

JIRA: LIGHTY-329
Signed-off-by: tobias.pobocik <[email protected]>
@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch 2 times, most recently from d803f56 to 9371b51 Compare May 7, 2025 08:21
Tobianas added 3 commits May 7, 2025 12:41
There is no need to create restconf manually anymore thanks to JaxRsEndpoint.
This patch relies on the previous JettyWebServerProvider patch since
JaxRsEndpoint requires JettyWebServer instead of regular server.

Now initialization order matters, and restconf has to be initialized
after lighty services.

JIRA: LIGHTY-329
Signed-off-by: tobias.pobocik <[email protected]>
Since JettyWebServer is being used, the entire AAA authorization can be
modernized to use WebContext.builder() instead of handlers.

Classes related to moon endpoins can also be ditched since now its part
ShiroProvider using WebContext.builder().

JIRA: LIGHTY-329
Signed-off-by: tobias.pobocik <[email protected]>
Use the JettyWebServer to initialize OpenApi the same way as its done
in ODL.

Also add possibility to add WebContextSecurer to secure the /openapi
endpoint.

JIRA: LIGHTY-329
Signed-off-by: tobias.pobocik <[email protected]>
@Tobianas Tobianas force-pushed the reworkCommunityRestConf branch from 9371b51 to 39eca7c Compare May 7, 2025 10:41
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.

1 participant