Migrate camel-ibm-cos CamelIBMCOSContentControl header to CamelIBMCOSCacheControl

Apache 2.0

The IBMCOSConstants.CACHE_CONTROL header value was renamed from CamelIBMCOSContentControl to CamelIBMCOSCacheControl in Camel 4.23, and the Endpoint DSL header name builder method followed it from iBMCOSContentControl() to iBMCOSCacheControl(). Existing IBMCOSConstants.CACHE_CONTROL usages need no change, only string literal header names and the Endpoint DSL builder method.

org.apache.camel.upgrade.camel423.migrateIbmCosCacheControlHeader
mod run . --recipe=org.apache.camel.upgrade.camel423.migrateIbmCosCacheControlHeader

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Rename Camel header(s) across all DSLs
  2. Change method name org.apache.camel.builder.endpoint.dsl.IBMCOSEndpointBuilderFactory.IBMCOSHeaderNameBuilder iBMCOSContentControl() to iBMCOSCacheControl