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:
Mark Fisher
2008-12-09 21:32:29 +00:00
parent c053656af9
commit bc4a20f6c5
8 changed files with 30 additions and 20 deletions

View File

@@ -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";