All pre-defined internal header names are now valid Java identifiers. Dot delimiters have been replaced by underscores, and hyphenated names are now camelCase. The SimpleHeaderEnricherParser uses Conventions.attributeToPropertyName(). The attributes are now legal for passing as JMS properties (INT-511).
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.integration.file;
|
||||
|
||||
import org.springframework.integration.core.MessageHeaders;
|
||||
|
||||
/**
|
||||
* Pre-defined header names to be used when storing or retrieving
|
||||
* File-related values to/from integration Message Headers.
|
||||
@@ -24,7 +26,7 @@ package org.springframework.integration.file;
|
||||
*/
|
||||
public abstract class FileHeaders {
|
||||
|
||||
public static final String PREFIX = "spring.integration.file.";
|
||||
public static final String PREFIX = MessageHeaders.PREFIX + "file_";
|
||||
|
||||
public static final String FILENAME = PREFIX + "name";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user