Interface MessageInterceptor

    • Method Detail

      • intercept

        @Nullable
        TextMessage intercept​(@Nonnull
                              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
        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.