Class WebSocketSessionDecorator

java.lang.Object
org.springframework.web.socket.handler.WebSocketSessionDecorator
All Implemented Interfaces:
Closeable, AutoCloseable, WebSocketSession
Direct Known Subclasses:
ConcurrentWebSocketSessionDecorator

public class WebSocketSessionDecorator extends Object implements WebSocketSession
Wraps another WebSocketSession instance and delegates to it.

Also provides a getDelegate() method to return the decorated session as well as a getLastSession() method to go through all nested delegates and return the "last" session.

Since:
4.0.3
Author:
Rossen Stoyanchev