Add jetty websocket support to Jetty12  (#298)

* Update to latest Jetty 12.0.6 and add Jetty WebSocket bundles

This change makes it possible to use WebSockets via Felix HTTP Jetty 12 bundle.

There are still some strange things that need to be done to get it all to work, but that's for a separate change request/bug report.

* Update pom.xml

* Remove websocket client dependency

* Remove tag

* Update to jetty 12.0.7

* Update pom.xml

Update to 12.0.8

* Add example of how to register a servlet that can upgrade to a Jetty WebSocket
To try it out, deploy the whiteboard sample bundle to your OSGi environment and execute the following snippet in your Chrome console.

```
const websocket = new WebSocket("ws://localhost:8080/filtersample/websocket/example");
websocket.send("test");
```

* Send message for example as well

* Remove upgrade check, already done in super

* Extract abstract base class, which could be part of the Felix HTTP Jetty12 bundle.
This abstracts away all the ugly code currently required to make websockets work.
5 files changed
tree: bb2788aa90975d0be8f983a1bc667e361f598760
  1. bundlerepository/
  2. bundlerepository.osgi-ct/
  3. cm.json/
  4. configadmin/
  5. configadmin-plugins/
  6. configurator/
  7. connect/
  8. coordinator/
  9. dependencymanager/
  10. doap/
  11. eventadmin/
  12. examples/
  13. features/
  14. fileinstall/
  15. framework/
  16. framework.security/
  17. gogo/
  18. healthcheck/
  19. http/
  20. inventory/
  21. ipojo/
  22. log/
  23. log.extension/
  24. main/
  25. main.distribution/
  26. metatype/
  27. pom/
  28. resolver/
  29. rootcause/
  30. scr/
  31. scr-ext-anno/
  32. systemready/
  33. tools/
  34. utils/
  35. webconsole/
  36. webconsole-plugins/
  37. .gitignore
  38. check_staged_release.sh
  39. CODE_OF_CONDUCT.md
  40. CONTRIBUTING.md
  41. LICENSE
  42. README.md
  43. stage_existing_artifact.sh
README.md

Apache Felix

The Apache Felix project is a collection of semi-related OSGi sub-projects that build and release individually.

Felix Framework

The flagship project is the Apache Felix Framework which implements the OSGi Core R7 specification. The /framework directory contains the source and build tree for the OSGi-compliant framework implementation.

Directly related projects:

  • main /main* - provides an executable jar that launches the Felix framework.

OSGi Core

OSGi Compendium

Several sub-projects cover various OSGi Compendium specifications such as:

Extra Features

Several projects provide extra features to an OSGi runtime.

  • bundle repository /bundlerepository - Bundle repository service.
  • connect /connect - A service registry that enables OSGi style service registry programs without using an OSGi framework.
  • dependency manager /dependencymanager - A versatile java API, allowing to declaratively register, acquire, and manage dynamic OSGi services.
  • fileinstall /fileinstall* - A utility to automatically install bundles from a directory.
  • gogo /gogo - A command line shell, runtime and set of base commands for interacting with and introspecting an OSGi framework.
  • health checks /healthcheck/* - An extensible framework to monitor the status of the OSGi container at runtime. (contains systemready)
  • inventory /inventory - Provides some mechanisms to get the current state of the system and therefore provides an inventory of the system.
  • ipojo /ipojo - A service component runtime aiming to simplify OSGi application development.
  • jaas support /jaas - Bundle to simplify JAAS usage within OSGi environment.
  • logback /logback - A simple integration of the OSGi R7 Log (1.4) service to Logback backend.
  • OSGi metrics /metrics/osgi - Collecting and publishing metrics related to OSGi applications
  • rootcause /rootcause - Finding the root cause of problems with OSGi declarative services components.
  • utils /utils - Utility classes for OSGi (intended for embedding within other bundles.)
  • webconsole /webconsole* - Web Based Management Console for OSGi Frameworks.
  • and many other OSGi things

Build tools

The /tools directory contains various build tools.

  • maven-bundle-plugin /tools/maven-bundle-plugin - A maven plugin for building OSGi bundles.
  • osgicheck-maven-plugin /tools/osgicheck-maven-plugin - Maven plugin for checking several OSGi aspects of your project.