Tuesday, November 16, 2021

Camel: How to increment the value of an Integer header by a set amount

 

Code

from("direct:hello")

    .setHeader("offset", header("offset").convertTo(Integer.class))

    .setHeader("offset").ognl("request.headers.offset + 50");


Ref: https://newbedev.com/camel-how-to-increment-the-value-of-an-integer-header-by-a-set-amount

No comments:

Post a Comment

Install and use xorg-server on macOS via Homebrew

  The instructions to install and use xorg-server on macOS via Homebrew: Install Homebrew (if you haven't already): /bin/bash -c ...