# US 9,356,990 B2 · Providing access to message headers

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,356,990 B2
- Document ID: US9356990B2
- Status: Granted
- Kind: B2
- Application number: 14/883,742
- Filed: 2015-10-15
- Published: 2016-02-04
- Granted: 2016-05-31
- Earliest claimed: 2012-08-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Denis Aubert; Oliver Oudot; Joaquin Picon; Bernard Y. Pucci
- Web page: https://patentgrep.com/patent/US9356990B2

## CPC

- G06F 16/258: {Data format conversion from or to a database}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2455: Query execution
- G06F 16/84: Mapping; Conversion
- H04L 51/046: Interoperability with other network applications or services
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 69/12: Protocol engines
- H04L 69/22: Parsing or analysis of headers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Method and system are provided for providing access to string-based message headers in network protocol messages. The method includes: converting header names into canonical form, wherein a canonical key represents at least one equivalent header name, and wherein a canonical key has a string and an integer value; providing a mapping between the header names and the canonical keys; and searching for a header name using the canonical key by sequential search using integer comparison.

## Claims

### Claim 1

A method, comprising:
converting header names into a canonical form comprising a plurality of canonical keys, wherein each canonical key represents at least one equivalent header name, and wherein each canonical key has a string and an integer value;
providing a mapping between the header names and the canonical keys; and
searching for a header name using the canonical key by sequential search using integer comparison.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein providing a mapping between the header names and the canonical keys comprises mapping the header names of the following forms to the canonical key:
a standard representation of the header name which is its canonical string;
a lower-case representation of the header name; and
a lower-case representation of at least one alias of the header name.

### Claim 3 (depends on 1)

The method as claimed in claim 1, further comprising:
initializing a converter by converting predefined header names for a protocol to canonical keys and building the mapping.

### Claim 4 (depends on 1)

The method as claimed in claim 1, further comprising:
associating an integer value with a canonical key by using a memory address for a canonical header string as the integer value.

### Claim 5 (depends on 1)

The method as claimed in claim 1, further comprising:
associating an integer value with a canonical key by using a table to store all canonical header strings and using the index of the table as the integer value.

### Claim 6 (depends on 1)

The method as claimed in claim 1, further comprising storing the canonical key and its lower-case representation as map keys, and the canonical key as a map value.

### Claim 7 (depends on 1)

The method as claimed in claim 1, further comprising updating the mapping of canonical keys to include new representations of existing predefined header names.

### Claim 8 (depends on 1)

The method as claimed in claim 1, further comprising updating the mapping of canonical keys to include new header names received which are not in the initialized predefined header names of the protocol.

### Claim 9 (depends on 1)

The method as claimed in claim 1, further comprising:
receiving a message having a message header of header names;
converting the header names to canonical keys; and
building a message header list for the message of the canonical keys.

### Claim 10 (depends on 9)

The method as claimed in claim 9, further comprising:
receiving a header name to be searched; and
searching for the canonical key in the message header list of a message using integer comparison.

### Claim 11 (depends on 9)

The method as claimed in claim 9, further comprising:
receiving a header name to be searched;
converting the header name to its canonical key using the mapping; and
searching for the canonical key in the message header list of a message using integer comparison.

### Claim 12

A system, comprising:
a converter for converting header names into a canonical form comprising a plurality of canonical keys, wherein each canonical key represents at least one equivalent header name, and wherein each canonical key has a string and an integer value;
a map for mapping between the header names and the canonical keys; and
a header search component for searching for a header name using the canonical key by sequential search using integer comparison.

### Claim 13 (depends on 12)

The system as claimed in claim 12, wherein the map for providing a mapping between the header names and the canonical keys further comprises:
a standard representation of the header name which is its canonical string;
a lower-case representation of the header name; and
a lower-case representation of at least one alias of the header name.

### Claim 14 (depends on 12)

The system as claimed in claim 12, further comprising an initializing component for initializing the converter by converting predefined header names for a protocol to canonical keys and building the map.

### Claim 15 (depends on 12)

The system as claimed in claim 12, wherein the map stores the canonical key and its lower-case representation as map keys, and the canonical key as a map value.

### Claim 16 (depends on 12)

The system as claimed in claim 12, further comprising at least one of:
an updating component for updating canonical keys to include new representations of existing predefined header names; and
an updating component for updating canonical keys to include new header names received which are not in the initialized predefined header names of the protocol.

### Claim 17 (depends on 12)

The system as claimed in claim 12, further comprising:
a message header converting component for receiving a message having a message header of header names, and further comprising:
a look-up component for converting the header names to canonical keys; and
a list building component for building a message header list for the message of the canonical keys with integer values.

### Claim 18 (depends on 12)

The system as claimed in claim 12, further comprising:
a header search component further comprising:
a key receiving component for receiving a header name to be searched;
a converting component for converting the header name to its canonical key using the mapping; and
a sequential search component for searching for the canonical key in the message header list of a message using integer comparison.

### Claim 19

A computer program product stored on a computer readable storage medium for performing a method when executed on a computing device, the method comprising:
converting header names into a canonical form comprising a plurality of canonical keys, wherein each canonical key represents at least one equivalent header name, and wherein each canonical key has a string and an integer value;
providing a mapping between the header names and the canonical keys; and
enabling search for a header name using the canonical key by sequential search using integer comparison.
