com.vmware.transport.bridge.spring.config.interceptors.TransportStompInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transport Show documentation
Show all versions of transport Show documentation
Transport is a full stack, simple, fast, expandable application event bus for your applications. It provides a standardized and simple API, implemented in multiple languages, to allow any individual component inside your applications to talk to one another. This is the Java implementation of the Transport library.
The newest version!
/*
* Copyright 2018-2020 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
*
*/
package com.vmware.transport.bridge.spring.config.interceptors;
import org.springframework.messaging.Message;
/**
* Interface for interceptors that are able to view and/or modify the
* {@link Message Messages} before they are sent to Transport channels.
*/
public interface TransportStompInterceptor {
/**
* Invoked before the Message is actually sent to the channel.
* This allows for modification of the Message if necessary.
* If this method returns {@code null} then the actual
* send invocation will not occur.
*/
Message preSend(Message message);
}