SftpConstants is now SftpHeaders, and the key value is camelCase
This commit is contained in:
@@ -18,9 +18,10 @@ package org.springframework.integration.sftp;
|
||||
|
||||
/**
|
||||
* @author Josh Long
|
||||
* @since 2.0
|
||||
*/
|
||||
public class SftpConstants {
|
||||
public abstract class SftpHeaders {
|
||||
|
||||
public static final String SFTP_REMOTE_DIRECTORY_HEADER = "SFTP_REMOTE_DIRECTORY_HEADER";
|
||||
public static final String REMOTE_DIRECTORY = "sftp_remoteDirectory";
|
||||
|
||||
}
|
||||
@@ -184,8 +184,8 @@ public class SftpSendingMessageHandler implements MessageHandler, InitializingBe
|
||||
MessageHeaders messageHeaders = null;
|
||||
if (message != null) {
|
||||
messageHeaders = message.getHeaders();
|
||||
if ((messageHeaders != null) && messageHeaders.containsKey(SftpConstants.SFTP_REMOTE_DIRECTORY_HEADER)) {
|
||||
dynRd = (String) messageHeaders.get(SftpConstants.SFTP_REMOTE_DIRECTORY_HEADER);
|
||||
if ((messageHeaders != null) && messageHeaders.containsKey(SftpHeaders.REMOTE_DIRECTORY)) {
|
||||
dynRd = (String) messageHeaders.get(SftpHeaders.REMOTE_DIRECTORY);
|
||||
if (!StringUtils.isEmpty(dynRd)) {
|
||||
baseOfRemotePath = dynRd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user