public class WonWebSocketHandler extends org.springframework.web.socket.handler.TextWebSocketHandler implements WonMessageProcessor, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
WonWebSocketHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus status) |
void |
afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) |
void |
afterPropertiesSet() |
void |
handleTextMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.TextMessage message) |
WonMessage |
process(WonMessage wonMessage) |
void |
setEagerlyCachePopulatingProcessor(EagerlyCachePopulatingMessageProcessor eagerlyCachePopulatingProcessor) |
void |
setOwnerApplicationService(OwnerApplicationService ownerApplicationService) |
boolean |
supportsPartialMessages()
We want to keep the buffer in the underlying server small (8k per websocket),
but still be able to receive large messages.
|
handleBinaryMessagepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session)
throws java.lang.Exception
afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandlerafterConnectionEstablished in class org.springframework.web.socket.handler.AbstractWebSocketHandlerjava.lang.Exceptionpublic void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus status)
throws java.lang.Exception
afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandlerafterConnectionClosed in class org.springframework.web.socket.handler.AbstractWebSocketHandlerjava.lang.Exception@Transactional(propagation=SUPPORTS,
isolation=READ_COMMITTED)
public void handleTextMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.TextMessage message)
throws java.io.IOException
handleTextMessage in class org.springframework.web.socket.handler.AbstractWebSocketHandlerjava.io.IOExceptionpublic boolean supportsPartialMessages()
supportsPartialMessages in interface org.springframework.web.socket.WebSocketHandlersupportsPartialMessages in class org.springframework.web.socket.handler.AbstractWebSocketHandler@Transactional(propagation=REQUIRED,
isolation=READ_COMMITTED)
public WonMessage process(WonMessage wonMessage)
process in interface WonMessageProcessorpublic void setOwnerApplicationService(OwnerApplicationService ownerApplicationService)
public void setEagerlyCachePopulatingProcessor(EagerlyCachePopulatingMessageProcessor eagerlyCachePopulatingProcessor)
Copyright © 2018. All Rights Reserved.