Apache Aries JAX RS Whiteboard

Clone this repo:
  1. b6294df [maven-release-plugin] prepare for next development iteration by Jean-Baptiste Onofré · 2 years ago master
  2. 46737d4 [maven-release-plugin] prepare release org.apache.aries.jax.rs-2.0.2 by Jean-Baptiste Onofré · 2 years ago org.apache.aries.jax.rs-2.0.2
  3. 1b88e84 Update changelog.md in preparation for 2.0.2 release by Jean-Baptiste Onofré · 2 years ago
  4. 005719c Merge pull request #199 from jbonofre/ARIES-2090 by Jean-Baptiste Onofré · 2 years ago
  5. db4317c [ARIES-2090] Refactore and fix Karaf features by Jean-Baptiste Onofré · 2 years ago

JAX-RS Whiteboard

Build Status CI Build Maven Central

Aries JAX-RS Whiteboard is the reference implementation of the OSGi JAX-RS Services Whiteboard 1.0.

Configuration

The whiteboard is configured using configuration admin.

PIDPurpose
org.apache.aries.jax.rs.whiteboard.defaultDefault JAX-RS Whiteboard instance
org.apache.aries.jax.rs.whiteboardFactory PID for creating additional JAX-RS Whiteboard instances
PropertyDefaultDescription
enabledtrueEnable or disable the whiteboard instance
default.application.base/Base for default application
application.base.prefix""Prefix for application base
osgi.http.whiteboard.target(osgi.http.endpoint=*)Select the http whiteboard service if there are several
osgi.http.whiteboard.context.selectnew context per applicationSelect the http whiteboard context to be used
servlet.init.hide-service-list-pagetrueHide the CXF service list
replace.loopback.address.with.localhostfalseReplace loopback addresses by localhost (e.g. by UriBuilder)
application.ready.service.filterA service that must be present in order for applications to get started

properties existing in the application service, as those in the whiteboard configuration, are used when the servlet contexts and servlets are registered.

Proprietary PropertyDefaultDescription
org.apache.aries.jax.rs.whiteboard.application.scopedfalseMarks a resource prototype service as application scoped

Integrations

The integrations folder contains OSGi enabled integrations for a variety of useful libraries that you might want to use with JAX-RS. In many cases these are just adding OSGi lifecycle and configuration to existing JAX-RS enabled libraries.

Building

Execute the maven tasks mvn clean install.

Running the Example

The file jax-rs.example/target/aries-jaxrs-whiteboard-example.jar should have been created.

Execute the following command:

java -jar jax-rs.example/target/aries-jaxrs-whiteboard-example.jar

then open a browser to http://localhost:8080/{name}

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.