camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Paulin <>
Subject REST DSL Support for default headers
Date Fri, 05 Jun 2020 15:13:26 GMT

Within support was
added for defaulting query string values in the REST DSL.

Other frameworks such as spring mvc also provide support for this in the
header fields.

@RequestMapping(value = "/test")
public String test(@RequestHeader(value="X-SOME-HEADER", defaultValue="A
VALUE") String someHeader)

In camel this is possible however when the route is called the default
value is not set from the rest definition.

    .defaultValue("A VALUE")

I could not find a reason this support was not included so I'm guessing
it would be a welcome addition.  Happy to help on a patch.


- Bob

View raw message