spring-projects / spring-projects/spring-integration

Add SimpleHeaderMapper implementation [INT-1439]

Open
#5,424 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

Mark Fisher opened INT-1439 and commented

This implementation of HeaderMapper can be used for any case where the source/target type is simply a Map instance, e.g.:

public class SimpleHeaderMapper implements HeaderMapper<Map> {

   // something like this (and an inbound version)
   // see DefaultHttpHeaderMapper as an example
   public void setOutboundHeaderNames(String[] outboundHeaderNames) {

}

We would also need to support wildcard matching on the map keys, eg:

<something mapped-inbound-headers="foo, x-*"/>

For cases where we want to allow a Map of String keys and Expression values, we might want to add a new implementation, such as ExpressionEvaluatingHeaderMapper.


No further details from INT-1439

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the HeaderMapper contract and DefaultHttpHeaderMapper example mentioned in the issue. Define the scope for SimpleHeaderMapper, including inbound and outbound Map handling and wildcard key matching; completion would require a decided API and corresponding implementation and tests, but the issue names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.