tree: 54bdd37767c64478bd6606839857a6947ccd3530 [path history] [tgz]
  1. src/
  2. bnd.bnd
  3. pom.xml
  4. Readme.md
common/Readme.md

CXF DOSGi common

Handles communication with the HttpService and Intents.

HttpServiceManager

In case a custom http context is used the providers will register a custom servlet. Besides this the HttpServiceManager also handles the creation of a default address if none is given and the conversion from the relative address specified on the service property to a fully qualified address.

Config pid org.apache.cxf.dosgi.http

KeyDefaultDescription
httpBaseStart of the address like http://myserver:8181
cxfServletAlias/cxfName of the cxf servlet alias

The absolute address of a service is determined by :

[httpBase][cxfservletAlias][relative address]

IntentManager

The IntentManager service tracks intent services and allows to apply these to a client or endpoint.

An intent is marked by the service property org.apache.cxf.dosgi.IntentName or intentName. The value of this property represents the name of the intent that the user can specify on his service to refer to the intent.

An intent can be of the following types.

IntentTypes

  • org.apache.cxf.feature.Feature
  • org.apache.cxf.databinding.DataBinding
  • org.apache.cxf.binding.BindingConfiguration
  • javax.ws.rs.ext.ExceptionMapper
  • javax.ws.rs.ext.MessageBodyReader
  • javax.ws.rs.ext.MessageBodyWriter
  • javax.ws.rs.ext.ContextResolver
  • Callable<List<Object>>

The Callable allows one to publish an intent service that returns a List of intents, so several intents can be grouped with one name.