davsclaus opened a new pull request, #31217: URL: https://github.com/apache/camel/pull/31217
The catalog lists the message headers of each component (the `headers` of the component JSON, from the constants class named by `headersClass`). Some components set or read headers that were not declared there, so the component pages, the Endpoint DSL header builders and the tools that read the catalog did not know about them. This declares them: a constant with `@Metadata` in the constants class of the component (a new `<Name>Constants` class plus `headersClass` where the component had none), and the code uses the constant where it used the string. Framework headers are declared as `= Exchange.X`, as camel-file does. - No header is renamed and no string value changes (see `design/headers.adoc`), so there is no behavior change. Names that do not follow `Camel<Component><Feature>` keep their name. - The component JSON diffs only add headers (the other lines are index shifts); no option changes. - Regenerated: component JSON and catalog copies, Endpoint DSL. 98 headers in 21 endpoint schemes: | Scheme | Added | Headers | |---|---|---| | `a2a` | 3 | `Content-Type`, `Authorization`, `Cookie` | | `huggingface` | 2 | `CamelChatMemoryId`, `Content-Type` | | `langchain4j-agent` | 3 | `Content-Type`, `CamelFileContentType`, `CamelFileName` | | `langchain4j-embeddingstore` | 4 | `CamelLangChain4jEmbeddingsEmbedding`, `CamelLangChain4jEmbeddingsEmbeddings`, `CamelLangChain4jEmbeddingsTextSegment`, `CamelLangChain4jEmbeddingsTextSegments` | | `langchain4j-ingest` | 1 | `CamelFileLength` | | `llm` | 4 | `Content-Type`, `CamelFileContentType`, `CamelFileName`, `CamelFileNameOnly` | | `openai` | 4 | `Content-Type`, `CamelFileContentType`, `CamelFileName`, `CamelFileNameOnly` | | `azure-functions` | 1 | `Content-Type` | | `azure-storage-blob` | 3 | `CamelMessageTimestamp`, `CamelAzureStorageBlobEncryptionKeySha256`, `CamelAzureStorageBlobEncryptionScope` | | `azure-storage-datalake` | 1 | `CamelMessageTimestamp` | | `azure-storage-queue` | 1 | `CamelMessageTimestamp` | | `ibm-watsonx-ai` | 4 | `CamelAwsS3Key`, `CamelAzureStorageBlobBlobName`, `CamelFileName`, `CamelCorrelationId` | | `jira` | 1 | `CamelFileName` | | `knative` | 1 | `Content-Type` | | `mongodb` | 1 | `CamelOffset` | | `rest-openapi` | 6 | `CamelHttpPath`, `CamelHttpMethod`, `Content-Type`, `Accept`, `CamelHttpResponseCode`, `Allow` | | `rest-postman` | 6 | `CamelHttpMethod`, `CamelHttpPath`, `CamelHttpResponseCode`, `Allow`, `Accept`, `Content-Type` | | `salesforce` | 46 | `CamelSalesforceSObjectName`, `CamelSalesforceSObjectId`, `CamelSalesforceSObjectIds`, `CamelSalesforceSObjectFields`, `CamelSalesforceSObjectIdName`, `CamelSalesforceSObjectIdValue`, `CamelSalesforceSObjectBlobFieldName`, `CamelSalesforceSObjectClass`, `CamelSalesforceSObjectQuery`, `CamelSalesforceStreamQueryResult`, `CamelSalesforceSObjectSearch`, `CamelSalesforceApexMethod`, `CamelSalesforceApexUrl`, `CamelSalesforceApexQueryParam.`, `CamelSalesforceCompositeMethod`, `CamelSalesforceLimit`, `CamelSalesforceAllOrNone`, `CamelSalesforceEventName`, `CamelSalesforceEventSchemaId`, `CamelSalesforceEventSchemaFormat`, `approval`, `CamelSalesforceContentType`, `CamelSalesforceJobId`, `CamelSalesforceBatchId`, `CamelSalesforceResultId`, `CamelSalesforceQueryLocator`, `CamelSalesforceLocator`, `CamelSalesforceMaxRecords`, `CamelSalesforcePkChunking`, `CamelSalesforcePkChunkingChunkSize`, `CamelSalesforcePkChunkingParent`, `CamelSalesforcePkChunkingStartRow`, `Came lSalesforceReportId`, `CamelSalesforceIncludeDetails`, `CamelSalesforceReportMetadata`, `CamelSalesforceInstanceId`, `CamelSalesforceIncludeHeaders`, `CamelSalesforceIncludeSummary`, `CamelSalesforceRawPath`, `CamelSalesforceRawMethod`, `CamelSalesforceRawQueryParameters`, `CamelSalesforceRawHttpHeaders`, `Sforce`, `x-sfdc`, `CamelHttpResponseCode`, `CamelHttpResponseText` | | `snmp` | 2 | `securityName`, `peerAddress` | | `spring-ai-chat` | 3 | `CamelFileContentType`, `Content-Type`, `CamelFileName` | | `spring-batch` | 1 | `SPRING_BATCH_JOB_EVENT_TYPE` | Part of CAMEL-27980. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
