hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

The ConsumerPublisher does not allow to specify a custom client configuration #148

Open miguelalvarado opened 8 years ago

miguelalvarado commented 8 years ago

Hi,

the ConsumerPublisher does not allow to specify a custom client configuration. It will be easy to extend it and allow a ClientConfig when we publish a consumer.The use case why I need this is because I need to hit an API that requires specific headers.

If I try to use the ConsumerFactory on my own bundle to instantiate the Consumer I have many issues due to the usage of internal classes that are not exported. So I guess if using the ConsumerPublisher is the recommended approach, it will be great if it will allow the passing a custom client configuration.

Regards, Miguel

ps: I can create a branch and create a PR for this.