osgi-jax-rs-connector icon indicating copy to clipboard operation
osgi-jax-rs-connector copied to clipboard

The ConsumerPublisher does not allow to specify a custom client configuration

Open miguelalvarado opened this issue 8 years ago • 0 comments

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.

miguelalvarado avatar Apr 22 '16 03:04 miguelalvarado