File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1769,7 +1769,7 @@ user and associate it with subsequent STOMP messages on the same session:
1769
1769
1770
1770
@Override
1771
1771
public void configureClientInboundChannel(ChannelRegistration registration) {
1772
- registration.setInterceptors (new ChannelInterceptorAdapter () {
1772
+ registration.interceptors (new ChannelInterceptor () {
1773
1773
@Override
1774
1774
public Message<?> preSend(Message<?> message, MessageChannel channel) {
1775
1775
StompHeaderAccessor accessor =
@@ -1975,7 +1975,7 @@ For example to intercept inbound messages from clients:
1975
1975
1976
1976
@Override
1977
1977
public void configureClientInboundChannel(ChannelRegistration registration) {
1978
- registration.setInterceptors (new MyChannelInterceptor());
1978
+ registration.interceptors (new MyChannelInterceptor());
1979
1979
}
1980
1980
}
1981
1981
----
You can’t perform that action at this time.
0 commit comments