Package de.otto.synapse.endpoint
Class MethodInvokingMessageInterceptor
- java.lang.Object
-
- de.otto.synapse.endpoint.MethodInvokingMessageInterceptor
-
- All Implemented Interfaces:
MessageInterceptor
public class MethodInvokingMessageInterceptor extends java.lang.Object implements MessageInterceptor
-
-
Constructor Summary
Constructors Constructor Description MethodInvokingMessageInterceptor(java.lang.Object instance, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextMessageintercept(TextMessage message)Intercept a message and return the same message, a modified version of the incoming message, or null, if the message should be filtered out and dropped by theAbstractMessageEndpoint
-
-
-
Method Detail
-
intercept
@Nullable public TextMessage intercept(@Nonnull TextMessage message)
Description copied from interface:MessageInterceptorIntercept a message and return the same message, a modified version of the incoming message, or null, if the message should be filtered out and dropped by theAbstractMessageEndpoint- Specified by:
interceptin interfaceMessageInterceptor- Parameters:
message- the channel-layer message with payload-type beeing a String- Returns:
- intercepted version of the message, or null if the message should be dropped.
-
-