This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Integration 6.3.4!spring-doc.cn

This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Integration 6.3.4!spring-doc.cn

This module uses the following MessageHeader instances:spring-doc.cn

Header Name IpHeaders Constant Description

ip_hostnamespring-doc.cn

HOSTNAMEspring-doc.cn

The host name from which a TCP message or UDP packet was received. If lookupHost is false, this contains the IP address.spring-doc.cn

ip_addressspring-doc.cn

IP_ADDRESSspring-doc.cn

The IP address from which a TCP message or UDP packet was received.spring-doc.cn

ip_portspring-doc.cn

PORTspring-doc.cn

The remote port for a UDP packet.spring-doc.cn

ip_localInetAddressspring-doc.cn

IP_LOCAL_ADDRESSspring-doc.cn

The local InetAddress to which the socket is connected (since version 4.2.5).spring-doc.cn

ip_ackTospring-doc.cn

ACKADDRESSspring-doc.cn

The remote IP address to which UDP application-level acknowledgments are sent. The framework includes acknowledgment information in the data packet.spring-doc.cn

ip_ackIdspring-doc.cn

ACK_IDspring-doc.cn

A correlation ID for UDP application-level acknowledgments. The framework includes acknowledgment information in the data packet.spring-doc.cn

ip_tcp_remotePortspring-doc.cn

REMOTE_PORTspring-doc.cn

The remote port for a TCP connection.spring-doc.cn

ip_connectionIdspring-doc.cn

CONNECTION_IDspring-doc.cn

A unique identifier for a TCP connection. Set by the framework for inbound messages. When sending to a server-side inbound channel adapter or replying to an inbound gateway, this header is required so that the endpoint can determine the connection to which to send the message.spring-doc.cn

ip_actualConnectionIdspring-doc.cn

ACTUAL_CONNECTION_IDspring-doc.cn

For information only. When using a cached or failover client connection factory, it contains the actual underlying connection ID.spring-doc.cn

contentTypespring-doc.cn

MessageHeaders. CONTENT_TYPEspring-doc.cn

An optional content type for inbound messages Described after this table. Note that, unlike the other header constants, this constant is in the MessageHeaders class, not the IpHeaders class.spring-doc.cn

For inbound messages, ip_hostname, ip_address, ip_tcp_remotePort, and ip_connectionId are mapped by the default TcpHeaderMapper. If you set the mapper’s addContentTypeHeader property to true, the mapper sets the contentType header (application/octet-stream;charset="UTF-8", by default). You can change the default by setting the contentType property. You can add additional headers by subclassing TcpHeaderMapper and overriding the supplyCustomHeaders method. For example, when you use SSL, you can add properties of the SSLSession by obtaining the session object from the TcpConnection object, which is provided as an argument to the supplyCustomHeaders method.spring-doc.cn

For outbound messages, String payloads are converted to byte[] with the default (UTF-8) charset. Set the charset property to change the default.spring-doc.cn

When customizing the mapper properties or subclassing, declare the mapper as a bean and provide an instance to the connection factory by using the mapper property.spring-doc.cn