程序包 org.springframework.web.socket.handler
Convenient
WebSocketHandler
implementations and decorators.接口概要 接口 说明 WebSocketHandlerDecoratorFactory A factory for applying decorators to a WebSocketHandler.类概要 类 说明 AbstractWebSocketHandler A convenient base class forWebSocketHandler
implementation with empty methods.BeanCreatingHandlerProvider<T> Instantiates a target handler through a SpringBeanFactory
and also provides an equivalent destroy method.BinaryWebSocketHandler A convenient base class forWebSocketHandler
implementations that process binary messages only.ConcurrentWebSocketSessionDecorator Wrap aWebSocketSession
to guarantee only one thread can send messages at a time.ExceptionWebSocketHandlerDecorator An exception handlingWebSocketHandlerDecorator
.LoggingWebSocketHandlerDecorator AWebSocketHandlerDecorator
that adds logging to WebSocket lifecycle events.PerConnectionWebSocketHandler AWebSocketHandler
that initializes and destroys aWebSocketHandler
instance for each WebSocket connection and delegates all other methods to it.TextWebSocketHandler A convenient base class forWebSocketHandler
implementations that process text messages only.WebSocketHandlerDecorator Wraps anotherWebSocketHandler
instance and delegates to it.WebSocketSessionDecorator Wraps anotherWebSocketSession
instance and delegates to it.异常错误概要 异常错误 说明 SessionLimitExceededException Raised when a WebSocket session has exceeded limits it has been configured for, e.g. timeout, buffer size, etc.