public class SubscriptionInterceptor extends java.lang.Object implements MessageInterceptor
| Constructor and Description |
|---|
SubscriptionInterceptor(Subscription subscription,
MessageSenderEndpoint targetSenderEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
TextMessage |
intercept(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 the
AbstractMessageEndpoint |
public SubscriptionInterceptor(Subscription subscription, MessageSenderEndpoint targetSenderEndpoint)
@Nullable public TextMessage intercept(@Nonnull TextMessage message)
MessageInterceptorAbstractMessageEndpointintercept in interface MessageInterceptormessage - the channel-layer message with payload-type beeing a String