Skip to content

Commit abb92b6

Browse files
kylec32snicoll
authored andcommitted
Fix usage of deprecated functionality in docs
Closes gh-1934
1 parent 68cf18f commit abb92b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/asciidoc/web/websocket.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ user and associate it with subsequent STOMP messages on the same session:
17691769
17701770
@Override
17711771
public void configureClientInboundChannel(ChannelRegistration registration) {
1772-
registration.setInterceptors(new ChannelInterceptorAdapter() {
1772+
registration.interceptors(new ChannelInterceptor() {
17731773
@Override
17741774
public Message<?> preSend(Message<?> message, MessageChannel channel) {
17751775
StompHeaderAccessor accessor =
@@ -1975,7 +1975,7 @@ For example to intercept inbound messages from clients:
19751975
19761976
@Override
19771977
public void configureClientInboundChannel(ChannelRegistration registration) {
1978-
registration.setInterceptors(new MyChannelInterceptor());
1978+
registration.interceptors(new MyChannelInterceptor());
19791979
}
19801980
}
19811981
----

0 commit comments

Comments
 (0)