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 anni fa | |
---|---|---|
jacoco-coverage-report | 3 anni fa | |
jerseyinkaraf.servicedef | 3 anni fa | |
jerseyinkaraf.services | 3 anni fa | |
jerseyinkaraf.webapi | 3 anni fa | |
jerseyinkaraf.webgui | 3 anni fa | |
src | 6 anni fa | |
.editorconfig | 6 anni fa | |
.gitignore | 6 anni fa | |
.travis.yml | 3 anni fa | |
LICENSE | 6 anni fa | |
README.org | 3 anni fa | |
pom.xml | 3 anni fa |
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.