osgi-jax-rs-connector
osgi-jax-rs-connector copied to clipboard
The ConsumerPublisher does not allow to specify a custom client configuration
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.