Browse Source

Fix usage of deprecated functionality in docs

Closes gh-1934
pull/1936/head
Kyle Carter 8 years ago committed by Stephane Nicoll
parent
commit
8848e6ab9f
  1. 4
      src/docs/asciidoc/web/websocket.adoc

4
src/docs/asciidoc/web/websocket.adoc

@ -1804,7 +1804,7 @@ user and associate it with subsequent STOMP messages on the same session: @@ -1804,7 +1804,7 @@ user and associate it with subsequent STOMP messages on the same session:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new ChannelInterceptorAdapter() {
registration.interceptors(new ChannelInterceptor() {
@Override
public Message<?> preSend(Message<?> message, MessageChannel channel) {
StompHeaderAccessor accessor =
@ -2063,7 +2063,7 @@ For example to intercept inbound messages from clients: @@ -2063,7 +2063,7 @@ For example to intercept inbound messages from clients:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new MyChannelInterceptor());
registration.interceptors(new MyChannelInterceptor());
}
}
----

Loading…
Cancel
Save