This is a karaf application that demonstrates using Jersey to provide a REST API in karaf, and demonstrates how OSGi services can be injected into Jersey resources created by the Jersey framework. https://steinar.bang.priv.no/2018/08/03/use-jersey-to-provide-rest-apis-from-karaf-applications/
Steinar Bang a0ce782eff Add mention of the branching done for karaf 4.2.x and 4.3.x in the README | пре 3 година | |
---|---|---|
jacoco-coverage-report | пре 3 година | |
jerseyinkaraf.servicedef | пре 3 година | |
jerseyinkaraf.services | пре 3 година | |
jerseyinkaraf.webapi | пре 3 година | |
jerseyinkaraf.webgui | пре 3 година | |
src | пре 6 година | |
.editorconfig | пре 6 година | |
.gitignore | пре 6 година | |
.travis.yml | пре 3 година | |
LICENSE | пре 6 година | |
README.org | пре 3 година | |
pom.xml | пре 3 година |
This is a small apache karaf demo application that demonstrates how to use Jersey in Apache Karaf, and how to inject OSGi services into Jersey resources.
file:https://travis-ci.org/steinarb/jersey-demo.svg?branch=master file:https://coveralls.io/repos/steinarb/jersey-demo/badge.svg file:https://maven-badges.herokuapp.com/maven-central/no.priv.bang.demos.jerseyinkaraf/jersey-demo/badge.svg
file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=ncloc#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=bugs#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=vulnerabilities#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=code_smells#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=coverage#.svg
This will cause repeated clicks on the "Increment" button to result in 405 responses, because the webgui servlet now intercepts the requests, but that servlet doesn't support the POST requests used to increment the counter.
Reinstalling the webapi feature will cause the count to start again from 0.
This is a demo project and therefore have no releases.
To preserve a version of the demo project still running on karaf 4.2.x and using OSGi 6, the branch release/1.1.0 has been created for the karaf 4.2.x version.
branch | snapshot version | karaf version supported |
---|---|---|
release/1.1.0 | 1.1.0-SNAPSHOT | >=4.2.11 |
master | 2.0.0-SNAPSHOT | >=4.3.2 |
This software project is licensed under Apache License v. 2.
See the LICENSE file for details.