Hi I am polishing rest-dsl today so I have implemented this.
On Thu, Feb 17, 2022 at 10:26 PM Claus Ibsen <claus.ib...@gmail.com> wrote: > > Hi > > Ah yeah since we dont have "freedom" to type in a verb to use then we > can let the sub classes return the actual value. > Feel free to fix this. > > On Thu, Feb 17, 2022 at 5:46 PM Karen Lease <karenlease...@gmail.com> wrote: > > > > Hi, > > While working on CAMEL-17308, and also in the changes made for > > CAMEL-17664, I noticed that VerbDefinition.asVerb() uses code like this: > > // so we infer the verb from the instance type > > if (this instanceof GetDefinition) { > > return "get"; > > } else if (this instanceof PostDefinition) { > > return "post"; > > } etc. > > Is there some reason we do this instead of overriding asVerb() in the > > subclasses? > > > > Karen > > > > -- > 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