I still have problem setting my custom client in the FhirConfiguration. I have 
implemented a custom client TestClient implementing the IGenericClient 
interface and I annotated the class with @Component. I also implemented a route 
where I try to set my custom client using the following strategy

        .setHeader(Exchange.HTTP_QUERY, simple("client=#testClient"))

When I debug a test that activates the route I  break in the first line of the 
createEndpoint method of the FhirComponent and inspect the client variable of 
the endpoint it is null.

I am running this in a Spring configuration.

Paw B Sørensen
paw.b.soren...@systematic.com


-----Original Message-----
From: Claus Ibsen <claus.ib...@gmail.com> 
Sent: 25. juni 2019 07:42
To: users@camel.apache.org
Subject: Re: How to set client or clientFactory in the FhirConfiguration object?

Hi

I have fixed this for master, eg Camel 3

On Fri, Jun 21, 2019 at 2:20 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> And btw you should still be able to configure them as query 
> parameters, as those @UriParam etc are for documentation purposes.
>
> On Fri, Jun 21, 2019 at 2:19 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
> >
> > Hi
> >
> > Ah those 2 are wrong they should be @UriParam also. You are welcome 
> > to log a JIRA and provide a PR
> >
> > On Fri, Jun 21, 2019 at 10:10 AM Paw B Sørensen 
> > <paw.b.soren...@systematic.com> wrote:
> > >
> > > The camel fhir component supports setting several query 
> > > parameters. In the implementation of FhirConfiguration all of these 
> > > parameters are annotated with @UriParam. Also in the implementation of 
> > > FhirConfiguration I find the client and clientFactory variables but they 
> > > are annotated with @Metadata. Can I make my own custom implementation of 
> > > the client to intercept whenever a response code 4xx is received? And is 
> > > it possible to set these Metadata values in my camel route?
> > >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to