Class RemoteFileRenamingAdvice
java.lang.Object
org.springframework.cloud.fn.common.file.remote.RemoteFileRenamingAdvice
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor,org.springframework.integration.aop.MessageSourceMutator,org.springframework.integration.aop.ReceiveMessageAdvice
public class RemoteFileRenamingAdvice
extends Object
implements org.springframework.integration.aop.MessageSourceMutator
A
MessageSourceMutator that renames a remote file on success.- Author:
- Andrea Montemaggio
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteFileRenamingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template, String remoteFileSeparator, Expression newNameExp) Construct an instance with the provided template and separator. -
Method Summary
Modifier and TypeMethodDescriptionMessage<?>afterReceive(Message<?> result, org.springframework.integration.core.MessageSource<?> source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.aop.MessageSourceMutator
afterReceive, beforeReceive, beforeReceiveMethods inherited from interface org.springframework.integration.aop.ReceiveMessageAdvice
invoke
-
Constructor Details
-
RemoteFileRenamingAdvice
public RemoteFileRenamingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template, String remoteFileSeparator, Expression newNameExp) Construct an instance with the provided template and separator.- Parameters:
template- the template.remoteFileSeparator- the separator.newNameExp- the SpEl expression for the new name.
-
-
Method Details