public class RemoteFileRenamingAdvice extends Object implements org.springframework.integration.aop.MessageSourceMutator
MessageSourceMutator
that renames a remote file on success.Constructor and Description |
---|
RemoteFileRenamingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template,
String remoteFileSeparator,
org.springframework.expression.Expression newNameExp)
Construct an instance with the provided template and separator.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
afterReceive(org.springframework.messaging.Message<?> result,
org.springframework.integration.core.MessageSource<?> source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RemoteFileRenamingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template, String remoteFileSeparator, org.springframework.expression.Expression newNameExp)
template
- the template.remoteFileSeparator
- the separator.newNameExp
- the SpEl expression for the new name.@Nullable public org.springframework.messaging.Message<?> afterReceive(@Nullable org.springframework.messaging.Message<?> result, org.springframework.integration.core.MessageSource<?> source)
afterReceive
in interface org.springframework.integration.aop.MessageSourceMutator
Copyright © 2022. All rights reserved.