Top Description Constructors Methods
org.springframework.web.socket.handler

public Class BinaryWebSocketHandler

extends AbstractWebSocketHandler
Class Inheritance
Imports
java.io.IOException, org.springframework.web.socket.CloseStatus, .TextMessage, .WebSocketHandler, .WebSocketSession

A convenient base class for WebSocketHandler implementations that process binary messages only.

Text messages are rejected with CloseStatus#NOT_ACCEPTABLE. All other methods have empty implementations.

Authors
Rossen Stoyanchev, Phillip Webb
Since
4.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.springframework.web.socket.handler.AbstractWebSocketHandler:
afterConnectionClosedafterConnectionEstablishedhandleBinaryMessagehandleMessagehandlePongMessagehandleTransportErrorsupportsPartialMessages

Constructor Detail

BinaryWebSocketHandlerback to summary
public BinaryWebSocketHandler()

Method Detail

handleTextMessageback to summary
protected void handleTextMessage(WebSocketSession session, TextMessage message)

Overrides org.springframework.web.socket.handler.AbstractWebSocketHandler.handleTextMessage.

Annotations
@Override