程序包 org.springframework.web.socket.handler
Convenient
WebSocketHandler implementations and decorators.接口概要 接口 说明 WebSocketHandlerDecoratorFactory A factory for applying decorators to a WebSocketHandler.类概要 类 说明 AbstractWebSocketHandler A convenient base class forWebSocketHandlerimplementation with empty methods.BeanCreatingHandlerProvider<T> Instantiates a target handler through a SpringBeanFactoryand also provides an equivalent destroy method.BinaryWebSocketHandler A convenient base class forWebSocketHandlerimplementations that process binary messages only.ConcurrentWebSocketSessionDecorator Wrap aWebSocketSessionto guarantee only one thread can send messages at a time.ExceptionWebSocketHandlerDecorator An exception handlingWebSocketHandlerDecorator.LoggingWebSocketHandlerDecorator AWebSocketHandlerDecoratorthat adds logging to WebSocket lifecycle events.PerConnectionWebSocketHandler AWebSocketHandlerthat initializes and destroys aWebSocketHandlerinstance for each WebSocket connection and delegates all other methods to it.TextWebSocketHandler A convenient base class forWebSocketHandlerimplementations that process text messages only.WebSocketHandlerDecorator Wraps anotherWebSocketHandlerinstance and delegates to it.WebSocketSessionDecorator Wraps anotherWebSocketSessioninstance and delegates to it.枚举概要 枚举 说明 ConcurrentWebSocketSessionDecorator.OverflowStrategy Enum for options of what to do when the buffer fills up.异常错误概要 异常错误 说明 SessionLimitExceededException Raised when a WebSocket session has exceeded limits it has been configured for, e.g. timeout, buffer size, etc.